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