inp1 = input().split()
inp2 = input().split()
inp3 = input().split()

a1 = int(inp1[0])
b1 = int(inp1[1])
a2 = int(inp2[0])
b2 = int(inp2[1])
a3 = int(inp3[0])
b3 = int(inp3[1])

result1 = a1 - a3
result2 = b1 - b2

print(result1, result2)
# https://acm.timus.ru/problem.aspx?space=1&num=2001
