#include using namespace std; int Count( const long long N ) { long long i; long long X; int R; int iCnt; R = (int) sqrt( (double) N ); X = N; iCnt = 0; while( X > 0 && X % 2 == 0 ) { iCnt++; X /= 2; } for( i = 3; i <= R; i += 2 ) { while( X > 0 && X % i == 0 ) { iCnt++; X /= i; } } return iCnt; } int main() { long long N; cin >> N; if( Count( N ) > 2 ) cout << "YES" << endl; else cout << "NO" << endl; return 0; }