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