import sys input=lambda: sys.stdin.readline().rstrip() x1,y1,x2,y2,x3,y3=map(int,input().split()) P=[[x1,y1],[x2,y2],[x3,y3]] def f(Q1,Q2,Q3): if Q2[0]-Q1[0]==Q3[1]-Q1[1] and Q2[1]-Q1[1]==-(Q3[0]-Q1[0]): return [Q3[0]+Q2[0]-Q1[0],Q3[1]+Q2[1]-Q1[1]] else: return False import itertools for P1,P2,P3 in itertools.permutations(P,3): if f(P1,P2,P3): print(*f(P1,P2,P3)) break else: continue else: print(-1)