import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines import itertools x1,y1,x2,y2,x3,y3 = map(int,read().split()) p1 = (x1,y1) p2 = (x2,y2) p3 = (x3,y3) def dist(p,q): return (p[0]-q[0])**2 + (p[1]-q[1])**2 def is_square(p1,p2,p3,p4): # この順に平行四辺形を仮定 d1 = dist(p1,p2) d2 = dist(p2,p3) d3 = dist(p1,p3) return (d1==d2) and (d3==d1*2) answer = None for p,q,r in itertools.permutations([p1,p2,p3]): s = tuple(p[i]+r[i]-q[i] for i in [0,1]) if is_square(p,q,r,s): answer = s if answer is None: print(-1) else: print(*answer)