#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:16777216")
using namespace std;
long long INF = 1000 * 1000 * 1000;
int main() {
  int n;
  cin >> n;
  while ((n & 1) == 0) n >>= 1;
  if (n == 1)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
