#include <stdio.h>
int main()
{
int a,i,b=0,data[20];
for(i=0;i<20;i++){
data[i]=a%2;
a=a/2;
b=b+1;
if(a==0)break;
}
for(i=b;i>0;i--){
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluKCkKewogICAgaW50IGEsaSxiPTAsZGF0YVsyMF07CiAgICAgc2NhbmYoIiVkIiwmYSk7CiAgICAgZm9yKGk9MDtpPDIwO2krKyl7CiAgICAgZGF0YVtpXT1hJTI7CiAgICAgYT1hLzI7CiAgICAgYj1iKzE7CiAgICAgaWYoYT09MClicmVhazsKICAgICB9CiAgICBmb3IoaT1iO2k+MDtpLS0pewogICAgIHByaW50ZigiJWQgIixkYXRhW2ktMV0pOwogICAgIH0KICAgICByZXR1cm4gMDsKfQo=