n = int(input()) ans = 0 i = 1 while i * 2 <= n: i *= 2 ans += 1 if i != n: ans += 1 print(ans)