from sys import stdin input=lambda :stdin.readline()[:-1] a,b=map(int,input().split()) c,d=map(int,input().split()) print(a*c-b*d,a*d+b*c)