a, b = [int(x) for x in input().split()] c, d = [int(x) for x in input().split()] print(a * c - b * d, a * d + b * c)