x = int(input()) -1 if not x : print(x) else : print(len(format(x, 'b')))