from math import exp, sqrt

f = 1
x = 0

while f > 0.5:
    x = x + 1/24
    f = exp(-x) * sqrt(x+1)

print(x)
