#include using namespace std; int main(){ long long N; cin >> N; vector P = {6, 28, 496, 8128, 33550336, 8589869056, 137438691328, 2305843008139952128}; if (count(P.begin(), P.end(), N) == 1){ cout << "Yes" << endl; } else { cout << "No" << endl; } }