x1, y1, x2, y2, x3, y3 = map(int, input().split()) p1 = (x1, y1) p2 = (x2, y2) p3 = (x3, y3) for a, b, c in [(p1, p2, p3), (p1, p3, p2), (p2, p1, p3)]: dx1 = b[0] - a[0] dy1 = b[1] - a[1] d1 = dx1 ** 2 + dy1 ** 2 dx2 = c[0] - b[0] dy2 = c[1] - b[1] d2 = dx2 ** 2 + dy2 ** 2 if dx1 * dx2 + dy1 * dy2 == 0 and d1 == d2: print(c[0] - dx1, c[1] - dy1) exit() print(-1)