def f(x):
    return 0.25*x*x+0.4*x-3

def g(x):
    return 0.5*x+0.4

a = 7
for i in range(10):
    a = a - f(a)/g(a)
print('a = ',a)
