(刪掉這個括弧)import math
a, b = list(map(int, input().split()))
c, d = list(map(int, input().split()))
e, f = list(map(int, input().split()))
k = math.sqrt((c - a) ** 2 + (b - d) ** 2)
l = math.sqrt((c - e) ** 2 + (f - d) ** 2)
if k > l:
print(a + c - e, b + d - f)
elif l > k:
print(c + e - a, d + f - b)
else:
print(a + e - c, f + b - d)