#include #include using namespace std; using ll = long long; constexpr int iINF = 1'000'000'000; constexpr ll llINF = 1'000'000'000'000'000'000; int main () { int N; cin >> N; ll M = (1LL << (N + 1)) - 1; ll prod = 1; for (int i = 2; i <= N; i++) { prod *= (1 << i) - 1; prod %= M; } if (prod == 0) { cout << "Yes\n"; } else { cout << "No\n"; } }