P = float(input()) while P ** n > 0.5: n += 1 print(n)