# -*- coding: utf-8 -*- n = int(input()) ans = 1 l = 2 for i in range(1, n+1): if n > l: ans += 1 l = l * 2 else: break print(ans)