#include using namespace std; using ll=long long; constexpr int MOD=998244353; #define rep(i,n) for(int i=0;i<(int)(n);i++) #define replr(i,l,r) for(int i=(l);i<(int)(r);i++) vector P={ "6", "28", "496", "8128", "33550336", "8589869056", "137438691328", "2305843008139952128", "2658455991569831744654692615953842176" }; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); string N; cin>>N; for(auto i:P){ if(i==N){ cout<<"Yes\n"; return 0; } } cout<<"No\n"; }