# -*- coding: utf-8 -*- __author__ = 'yuuki' N = input() i = 1 cnt = 0 while N != i: i *= 2 cnt += 1 if i > N: break print cnt