#include #include using namespace std; int get(int x) { int hig=0; while(x) { //if(x&1) cnt++; x>>=1; hig++; } return hig; } int getcnt(int x) { int cnt=0; while(x) { if(x&1) cnt++; x>>=1; //hig++; } return cnt; } int xx[]={1}; int main() { for(int i=1;i<32;i++) { xx[i] = xx[i-1]*2; } // int cnt=0,hig=0; // get(3,cnt,hig); //cout<30) b=30; if(b==0) { printf("%d\n",a); } else if(a==xx[b]) { printf("1\n"); } else if(hig