M, xmax, x = 0,0,0
while x <= 1:
    if 0.2*x*x*x-3*x*x+2.4*x+1 > M:
        M = 0.2*x*x*x-3*x*x+2.4*x+1
        xmax = x
    x = x + 0.01
print(xmax,M)
