#include <iostream> #include<math.h> using namespace std; int main() { int n; cin>>n; if(n && (!(n&(n-1)))) cout<<"Yes"; else cout<<"No"; return 0; }
To embed this program on your website, copy the following code and paste it into your website's HTML: