#include using namespace std; using ll = long long; /* Happy birthday!!!! \(^o^)/ */ int main() { ios::sync_with_stdio(false); cin.tie(0); ll z[7] = {6, 28, 496, 8128, 33550336, 8589869056, 137438691328}; ll n; cin >> n; for(auto e : z){ if(e == n){ cout << "Yes" << '\n'; return 0; } } cout << "No" << '\n'; return 0; }