#include <bits/stdc++.h>
using namespace std;
const long long N = 2e6 + 7;
long long l, r, n, m, cnt;
string s;
char z;
int main() {
  ios_base::sync_with_stdio(NULL);
  cin >> n;
  for (int i = 0; i < 1000; i++) {
    cnt = pow(2, i);
    if (cnt == n) return cout << "YES", 0;
  }
  cout << "NO";
}
