import itertools a,b,c,d,e,f = map(int,input().split()) XY = [[a,b],[c,d],[e,f]] for l in itertools.permutations(range(3),3): x1,y1 = XY[l[0]] x2,y2 = XY[l[1]] x3,y3 = XY[l[2]] dx,dy = x2-x1,y2-y1 if x1 - dy != x3 or y1+dx != y3: continue x4 = x3+dx y4 = y3+dy print(x4,y4) exit() print(-1)