#include <iostream> using namespace std; int main() { int n; cin >> n; bool flag = false; if (n > 0 && n & (n - 1) == 0) flag = true; return 0; }