from itertools import permutations cs = map(int, raw_input().strip().split()) coords = [(cs[i], cs[i+1]) for i in range(0, 6, 2)] orders = permutations(range(3)) def check(s): x0, y0 = coords[s[0]] x1, y1 = coords[s[1]] x2, y2 = coords[s[2]] dx = x1 - x0 dy = y1 - y0 if x2 != x1 + dy or y2 != y1 - dx: return None return (x0 + dy, y0 - dx) for orders in permutations(range(3)): res = check(orders) if res: print('%d %d' % res) quit() print(-1)