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