A, B = [int(x) for x in input().split()] C, D = [int(x) for x in input().split()] print(A * C - B * D, A * D + B * C)