#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i = 0;
  cin >> n;
  while (pow(2, i) <= n) {
    if (pow(2, i) == n) {
      cout << "YES";
      exit(0);
    }
    i++;
  }
  cout << "NO";
  return 0;
}
