import itertools import math x1, y1, x2, y2, x3, y3 = map(int, input().split()) L = [(x1, y1),(x2, y2),(x3, y3)] for x, y, z in itertools.permutations(L): if math.hypot(x[0]-y[0], x[1]-y[1]) != math.hypot(z[0]-y[0], z[1]-y[1]): continue a, b = (x[0]-y[0],x[1]-y[1]) c, d = (z[0]-y[0],z[1]-y[1]) if (a, b) == (-d, c) or (a, b) == (d, -c): print(x[0]+z[0]-y[0], x[1]+z[1]-y[1]) break else: print(-1)