def dist(x1, y1, x2, y2): return (x1-x2)**2 + (y1-y2)**2 def solve(x1, y1, x2, y2, x3, y3): if is_valid(x1, y1, x2, y2, x3, y3): return get_pos(x1, y1, x2, y2, x3, y3) return [-1] def is_valid(x1, y1, x2, y2, x3, y3): x12 = x2 - x1 y12 = y2 - y1 x13 = x3 - x1 y13 = y3 - y1 return x12 * x13 + y12 * y13 == 0 def get_pos(x1, y1, x2, y2, x3, y3): return x2 + x3 - x1, y2 + y3 - y1 x1, y1, x2, y2, x3, y3 = map(int, input().split()) dist12 = dist(x1, y1, x2, y2) dist13 = dist(x1, y1, x3, y3) dist23 = dist(x2, y2, x3, y3) if dist12 == dist13: print(*solve(x1, y1, x2, y2, x3, y3)) elif dist12 == dist23: print(*solve(x2, y2, x1, y1, x3, y3)) elif dist13 == dist23: print(*solve(x3, y3, x1, y1, x2, y2)) else: print(-1)