import math N = int(input()) index = math.floor(math.log(N, 2)) amari = N - 2**index if amari == 0: print(index) else: print(index + 1)