def main(): inp1 = int(input()) count = 0 num = 1 loop_flg = True while loop_flg: if num >= inp1: break if num == 1: num += 1 else: num = num * 2 count += 1 print(count) if __name__ == '__main__': main()