#include <stdio.h>
int main(void) {
int x,n;
x=1;
n=1;
while(x<1000){
x=2*x+1;
n++;
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CglpbnQgeCxuOwoJeD0xOwoJbj0xOwoJd2hpbGUoeDwxMDAwKXsKCQl4PTIqeCsxOwoJCW4rKzsKCX0KCQlwcmludGYoIiVkICIsbik7CgkKCXJldHVybiAwOwp9Cg==