n = int(eval(input()))

print((0 if n == 0 else len(str(bin(n))[2:])))
n = int(eval(input()))

print((0 * (n == 0) + len(str(bin(n))[2:]) * (n != 0)))
n = int(eval(input()))
print((0 if n == 0 else len(str(bin(n))[2:])))

n = int(eval(input()))
print((0 * (n == 0) + len(str(bin(n))[2:]) * (n != 0)))

-print((0 if n == 0 else len(str(bin(n))[2:]))) +print((0 * (n == 0) + len(str(bin(n))[2:]) * (n != 0)))