#include #include #include using namespace std; int main() { int N; cin >> N; deque A; iota(A.begin(), A.end(), !N); A.pop_front(); A.pop_front(); for (int x : A) { if (!(N % x)) { cout << "NO" << endl; goto END; } } cout << "YES" << endl; END:; }