#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  cin >> a;
  while (a != 1) {
    if (a % 2 == 1) {
      cout << "NO";
      return 0;
    }
    a /= 2;
  }
  cout << "YES";
  return 0;
}
