import sys def input(): return sys.stdin.readline().rstrip() def main(): N = int(input()) print((N-1).bit_length()) if __name__ == '__main__': main()