N = int(raw_input()) biscuit = 2 times = 1 if N == 1: print "0" while biscuit < N: biscuit **= 2 times += 1 print times