a, b = map(int, input().split()) c, d = map(int, input().split()) re = a*c - b*d im = a*d + b*c print(re, im)