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