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