#include using namespace std; using ll = long long; #define rep(i,m,n) for(int i=m; i bool chmin(T& a, T b){ if(a > b){a = b; return true;} return false; } template bool chmax(T& a, T b){ if(a < b){a = b; return true;} return false; } int main(){ ll N; cin >> N; vector enum_pn = {6LL, 28LL, 496LL, 8128LL, 33550336LL, 8589869056LL, 137438691328LL}; for(ll pn : enum_pn){ if(pn == N){ puts("Yes"); return 0; } } puts("No"); return 0; }