#yukicoder No.47 ポケットを叩くとビスケットが2倍 N = int(input()) if N == 1: ans = 0 else: ans = len(bin(N - 1)[2:]) print(ans)