# -*- coding: utf-8 -*- n = int(input()) ans = 0 bis = 1 while bis * 2 < n: ans += 1 bis *= 2 if n != 1: ans += 1 print(ans)