n = int(input()) if n == 1: print(0) elif int(format(n, 'b')[1:]) == 0: print(len(format(n, 'b')) - 1) else: print(len(format(n, 'b')))