N = int(input()) bis = 1 hit = 0 while 1: if bis * 2 < N: hit += 1 bis = bis * 2 else: hit += 1 print(hit) break