import math

x = float(input())

prop_2 = -(x**2) / math.factorial(2)

prop_3 = (x**4) / math.factorial(4)

prop_4 = -(x**6) / math.factorial(6)

cos_x = float(1 + prop_2 + prop_3 + prop_4)

print(prop_2)
print(prop_3)
print(prop_4)
print(cos_x)

[((5, 19, 5, 36), 'math.factorial', 'math.factorial', ({(5, 34, 5, 35): '(2)'}, {}), '(2)', False, 'import math\n'), ((7, 18, 7, 35), 'math.factorial', 'math.factorial', ({(7, 33, 7, 34): '(4)'}, {}), '(4)', False, 'import math\n'), ((9, 19, 9, 36), 'math.factorial', 'math.factorial', ({(9, 34, 9, 35): '(6)'}, {}), '(6)', False, 'import math\n')]