import math import sys def S(): return sys.stdin.readline().rstrip() def I(): return int(sys.stdin.readline().rstrip()) def MI(): return map(int, sys.stdin.readline().rstrip().split()) def LI(): return list(map(int, sys.stdin.readline().rstrip().split())) def LS(): return list(sys.stdin.readline().rstrip().split()) x1, y1, x2, y2, x3, y3 = MI() d1 = (x2-x1)*(x3-x1) + (y2-y1)*(y3-y1) d2 = (x3-x2)*(x1-x2) + (y3-y2)*(y1-y2) d3 = (x1-x3)*(x2-x3) + (y1-y3)*(y2-y3) f1 = (x2-x1)**2 + (y2-y1)**2 - (x3-x1)**2 - (y3-y1)**2 f2 = (x3-x2)**2 + (y3-y2)**2 - (x1-x2)**2 - (y1-y2)**2 f3 = (x1-x3)**2 + (y1-y3)**2 - (x2-x3)**2 - (y2-y3)**2 if d1 == 0 and f1 == 0: print(x3-x1+x2, y3-y1+y2) elif d2 == 0 and f2 == 0: print(x1-x2+x3, y1-y2+y3) elif d3 == 0 and f3 == 0: print(x2-x3+x1, y2-y3+y1) else: print(-1)