#include<bits/stdc++.h> using namespace std; using ll=long long; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); vector<ll> P={ 6, 28, 496, 8128, 33550336, 8589869056, 137438691328 }; ll N; cin>>N; for(auto n:P)if(n==N){ cout<<"Yes"<<endl; return 0; } cout<<"No"<<endl; }