#include int main(){ const std::vector perfect_numbers = { 6, 28, 496, 8128, 33550336, 8589869056, 137438691328 }; long long n; std::cin >> n; std::cout << (std::ranges::any_of(perfect_numbers, [n](long long x){ return x == n; }) ? "Yes" : "No") << std::endl; }