#include using namespace std; int main() { long long i; long long N; bool b; cin >> N; if( N > 4 && N % 4 == 0 ) { cout << "YES" << endl; return 0; } if( N > 2 && N % 2 == 0 ) { b = true; N /= 2; } i = 3; while( i * i <= N ) { if( N % i == 0 ) { if( b ) { cout << "YES" << endl; return 0; } else { b = true; N /= i; if( N > i ) { cout << "YES" << endl; return 0; } } } else i += 2; } cout << "NO" << endl; return 0; }