# Read input A, B = map(int, input().split()) C, D = map(int, input().split()) # Compute N and M N = A * C - B * D M = A * D + B * C # Output the result print(N, M)