import math N = int(input()) b, cnt = 1, 0 while math.ceil(N / 2) > b: cnt += 1 b *= 2 if N != 1: cnt += 1 print(cnt)