a = complex(int(input()), int(input()))
b = complex(int(input()), int(input()))
s1 = (a+b)
s2 = (a-b)
s3 = (a*b)
print(a,' + ',b,' = ', s1)
print(a,' - ',b,' = ', s2)
print(a,' * ',b,' = ', s3)
i = [int(a) for a in input().split()]
aa = input()
bb = input()
a = complex(int(aa.split(' ')[0]), int(aa.split(' ')[1]))
b = complex(int(bb.split(' ')[0]), int(bb.split(' ')[1]))
s1 = (a+b)
s2 = (a-b)
s3 = (a*b)
print(a,' + ',b,' = ', s1)
print(a,' - ',b,' = ', s2)
print(a,' * ',b,' = ', s3)