import sys input = sys.stdin.readline def main(): A, B = map(int, input().split()) C, D = map(int, input().split()) N = A * C - B * D M = A * D + B * C print(N, M) if __name__ == '__main__': main()