def per(x, y): return 2 * (x + y)while True: a, b = map(float, input('a b: ').split()) print(per(a, b))
from math import cos x, y = map(float, input('x y: ').split()) print((1+cos(y-x))/(x**4/2+cos(y)**2)**2)