from math import sin

x = float(input("Lietotaj, ludzu, ievadiet argumentu (x): "))

y = sin(x)
print ("sin(%.2f) = %.2f"%(x, y))

a0 = (-1)**0*x**1/(1)
S = a0
print ("a0 = %.2f S0 = %.2f"%(a0, S))

a1 = (-1)**1*x**3/(1*2*3)
S = S + a1
print ("a1 = %.2f S1 = %.2f"%(a1, S))

a2 = (-1)**2*x**5/(1*2*3*4*5)
S = S + a2
print ("a2 = %.2f S2 = %.2f"%(a2, S))

a3 = (-1)**3*x**7/(1*2*3*4*5*6*7)
S = S + a3
print ("a3 = %.2f S3 = %.2f"%(a3, S))
