#include using namespace std; void fast_io() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } set nums = {6, 28, 496, 8128, 33550336, 8589869056, 137438691328}; int main() { fast_io(); long long n; cin >> n; if (nums.find(n) != nums.end()) { cout << "Yes" << endl; } else { cout << "No" << endl; } }