n=int(input()) m=n.bit_length() print(m+max(0,m-10))