# import pypyjit # pypyjit.set_param('max_unroll_recursion=-1') from collections import * from itertools import * from functools import * from heapq import * import sys,math # input = sys.stdin.readline A,B = map(int,input().split()) C,D = map(int,input().split()) print(A*C-B*D,A*D+B*C)