#include using namespace std; using ull = unsigned long long; int main( ){ ull x; cin >> x; int c = 0; while (!((x >> c) & 1ull)) { c++; } if ((x >> c) == (1ull << (c+1))-1) { cout << "Yes"; } else { cout << "No"; } }