#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() { vector a = { 2, 6, 28, 3, 496, 5, 8128, 7, 33550336, 13, 8589869056, 17, 137438691328, 19, }; int n; cin >> n; rep(i, a.size()) { if (i % 2 == 0) continue; if (a[i] == n) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }