#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int count = 1;
  while (count <= n) {
    if (count == n) {
      printf("YES\n");
      return 0;
    }
    count *= 2;
  }
  printf("NO\n");
}
