#include<iostream> using namespace std; int main () { int x; cin>>x; if(x%3==0&&x%5==0) { printf("YES"); } else { printf("NO"); } }