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