n = int(input()) k = len(bin(n)) - 3 if n == 2**k: print(k) else: print(k+1)