#include <iostream>
using namespace std;
int main() {
int n,rem;
cin>>n;
//for(int i=n;i>0;i=i/2)
while(n>1)
{
if(n%2==1)
{
cout<<"not the power of 2"<<endl;
break;
}
n=n/2;
}
if(n==1)
{
cout<<"power of 2"<<endl;
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: