# -*- coding:utf-8 -*- import math if __name__ == "__main__": n = input() ans = math.floor(math.log(n,2)) if n != 2 ** ans: ans += 1 if n - 2 ** ans != 1 and n %2 ==1: ans += 1 print int(ans)