A, B = map(int, input().split()) C, D = map(int, input().split()) print(A*C-B*D, A*D+B*C)