#include using namespace std; using ll = long long; #define rep(i, n) for(int i = 0; i < n; i++) int main() { ll N; cin >> N; vector p{6, 28, 496, 8128, 33550336, 8589869056, 137438691328, 2305843008139952128}; int sz = p.size(); string ans = "No"; rep(i, sz) if(p[i] == N) ans = "Yes"; cout << ans << endl; }