a=input() print len(format(a-1,"b")) if a > 1 else 0