#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
  if (b == 0)
    return a;
  else if (a % b == 0)
    return b;
  return gcd(b, a % b);
}
int lcm(int a, int b) { return a * b / gcd(a, b); }
int numberofdigit(int x) {
  int temp = x;
  int num = x;
  int cnt = 0;
  while (num != 0) {
    temp = num % 10;
    cnt++;
    num = num / 10;
  }
  return cnt;
}
int ispoweroftow(int x) {
  int ans = x & (x - 1);
  if (ans == 0) {
    return 1;
  } else
    return 0;
}
void test_case() {
  int64_t n;
  cin >> n;
  int64_t ans = ispoweroftow(n);
  if (ans)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return;
}
int32_t main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int64_t t;
  t = 1;
  while (t--) {
    test_case();
  }
}
