#include <bits/stdc++.h>
using namespace std;
void past_code();
int main() {
  bool b = false;
  int x;
  cin >> x;
  for (int i = 0;; i++) {
    if (powl(2, i) == x) {
      cout << "YES\n";
      b = true;
      break;
    }
    if (powl(2, i) > x) break;
  }
  if (!b) cout << "NO\n";
  return 0;
}
