#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < 20; ++i) {
    if (n == (1 << i)) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
}
