#include using namespace std; int sum(unsigned int a, unsigned int b) { if (!b) return a; return sum(a ^ b, (a & b) << "X"s.size()); } void solve(int N) { for (int i = "XX"s.size(); i < N; i = sum(i, "X"s.size())) { if (!(N % i)) { puts("NO"); return; } } if (N == "X"s.size()) puts("NO"); else puts("YES"); } int main() { int N; cin >> N; solve(N); }