n=int(input()) #wanted biscuit p=0 #crap pocket biscuit = 1 #keep biscuit in pocket if n==1: print(0) exit() while biscuit <= n: p += 1 biscuit *= 2 print(p)