import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random #sys.setrecursionlimit(10**9) #n = int(input()) #alist = list(map(int,input().split())) #alist = [] a,b = map(int,input().split()) c,d = map(int,input().split()) print(a*c-b*d,a*d+b*c)