import math n=int(input()) k=math.ceil(math.log2(n+1)) print(k)