from collections import * import heapq import bisect import itertools INF = float("inf") MOD = 998244353 mod = 998244353 a, b = map(int, input().split()) c, d = map(int, input().split()) print(a * c - b * d, a * d + b * c)