#include using namespace std; int read(int &x) { x=0; char ch=getchar(); if(ch==-1)return 0; while(ch<'0'||ch>'9') { ch=getchar(); if(ch==-1)return 0; } while(ch>='0'&&ch<='9')x=(x*10+ch-'0')%30,ch=getchar(); return 1; } int main() { int n; while(read(n)) { if(n%2==0||n%3==0||n%5==0)puts("YES"); else puts("NO"); } }