# -*- coding: utf-8 -*- N = int(input()) number = 0 i = 0 while 2**(i+1) < N: i += 1 if N == 1: print(0) else: print(i+1)