#include using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); vector P = {6,28,496,8128,33550336,8589869056LL,137438691328LL}; long long N; cin >> N; bool ok = false; for(auto p : P) if(p == N) ok = true; if(ok) cout << "Yes" << endl; else cout << "No" << endl; }