from itertools import permutations def check(p1, p2, p3): x1, y1 = p1 x2, y2 = p2 x3, y3 = p3 if (x1 - x2) ** 2 + (y1 - y2) ** 2 == (x3 - x2) ** 2 + (y3 - y2) ** 2 and (x1 - x2) * (x3 - x2) + (y1 - y2) * (y3 - y2) == 0: return x1 + x3 - x2, y1 + y3 - y2 else: return None def func(x, y): if x is None and y is None: return None elif x is None: return y else: return x x1, y1, x2, y2, x3, y3 = map(int, input().split()) p = None for perm in permutations([(x1, y1), (x2, y2), (x3, y3)]): p = func(p, check(*perm)) if p is not None: print(p[0], p[1]) else: print(-1)