from math import exp

Cmax = 6 * exp(-1)
t = 1
C = 6*t*exp(-t)

while C >= 0.5*Cmax:
    t = t + 0.01
    C = 6*t*exp(-t)

print(t)
