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)

[((52, 69), 'math.factorial', 'math.factorial', (['(2)'], {}), '(2)\n', (66, 69), False, 'import math\n'), ((89, 106), 'math.factorial', 'math.factorial', (['(4)'], {}), '(4)\n', (103, 106), False, 'import math\n'), ((127, 144), 'math.factorial', 'math.factorial', (['(6)'], {}), '(6)\n', (141, 144), False, 'import math\n')]