#include <stdio.h>
#include <stdint.h>
uint32_t log2(uint32_t n)
{
float f = n;
return (*reinterpret_cast<uint32_t *>(&f) >> 23) - 127;
}
int main()
{
uint32_t n;
while(scanf("%u", &n) == 1)
{
printf("%u\n", log2(n));
};
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRpbnQuaD4KIAp1aW50MzJfdCBsb2cyKHVpbnQzMl90IG4pCnsKICAgIGZsb2F0IGYgPSBuOwogICAgcmV0dXJuICgqcmVpbnRlcnByZXRfY2FzdDx1aW50MzJfdCAqPigmZikgPj4gMjMpIC0gMTI3Owp9CiAKaW50IG1haW4oKQp7CiAgICB1aW50MzJfdCBuOwogICAgd2hpbGUoc2NhbmYoIiV1IiwgJm4pID09IDEpCiAgICB7CiAgICAgICAgcHJpbnRmKCIldVxuIiwgbG9nMihuKSk7CiAgICB9OwogICAgcmV0dXJuIDA7Cn0=