#include <bits/stdc++.h>
using namespace std;
const int N = 110;
int a[N];
int main() {
  cin.tie(0);
  cout.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  bool flag = false;
  for (int i = 0; i <= n; i++) {
    if (n == pow(2, i)) {
      flag = true;
      break;
    }
  }
  if (flag)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
