x1, y1, x2, y2, x3, y3 = map(int, input().split()) P = [(x1, y1), (x2, y2), (x3, y3)] import itertools for p in itertools.permutations(range(3)): x0, y0 = P[p[0]] x1, y1 = P[p[1]] x2, y2 = P[p[2]] v0 = (x1-x0, y1-y0) v1 = (x2-x0, y2-y0) if v0[0]*v1[0]+v0[1]*v1[1] == 0 and v0[0]**2+v0[1]**2 == v1[0]**2+v1[1]**2: x3 = x0+v0[0]+v1[0] y3 = y0+v0[1]+v1[1] print(x3, y3) exit() else: print(-1)