#include using namespace std; //#include //using namespace atcoder; using ll = long long; using ull = unsigned long long; #define rep(i,n) for(int i=0;i<(n);++i) long long powll(long long a, long long x){ if(x==0) return 1LL; long long ret = 1LL; while(x>0) { if(x&1) ret *= a; a *= a; x >>= 1; } return ret; } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); ll n; cin >> n; ll res = 1; ll mod = powll(2LL,(n+1)) - 1; for(ll i=2;i<=n;++i){ res*=powll(2LL,i)-1; res%=mod; } if(res==0)cout << "Yes" << endl; else cout << "No" << endl; }