n = int(input()) # 2^x > n # xlog2 > logn # x = logn/log2 # x = log(n-2) import math print(math.ceil(math.log(n)/math.log(2)))