#include #define FOR(i,a,b) for(int i = (a); i < (b); ++i) #define REP(i,n) FOR(i,0,n) #define SZ(n) (int)(n).size() #define ALL(n) (n).begin(), (n).end() #define MOD 1000003 #define INF 100000000 using namespace std; typedef long long LL; typedef vector VI; typedef pair PI; int main() { LL n; cin >> n; for (int i = 2; i < n; i++) { if (n % i == 0) { for (int j = 3; j < i; j++) { if (i % j == 0) { cout << "YES" << endl; return 0; } } } } cout << "NO" << endl; return 0; }