#include "bits/stdc++.h" using namespace std; #define int long long #define ld long double #define rep(i, n) for (int i = 0; i < n; i++) #define ll long long #define rep(i, n) for (int i = 0; i < n; i++) signed main() { int n; cin >> n; int ans = 0; if (n == 6) { cout << "Yes" << endl; return 0; } if (n == 28) { cout << "Yes" << endl; return 0; } if (n == 496) { cout << "Yes" << endl; return 0; } if (n == 8128) { cout << "Yes" << endl; return 0; } if (n == 33550336) { cout << "Yes" << endl; return 0; } if (n == 8589869056) { cout << "Yes" << endl; return 0; } if (n == 137438691328) { cout << "Yes" << endl; return 0; } }