X = list(map(int, input().split())) XY = [] for i in range(3): XY.append((X[2 * i], X[2 * i + 1])) for i in range(3): x0 = XY[i][0] y0 = XY[i][1] x1 = XY[(i + 1) % 3][0] - x0 y1 = XY[(i + 1) % 3][1] - y0 x2 = XY[(i + 2) % 3][0] - x0 y2 = XY[(i + 2) % 3][1] - y0 if x1 ** 2 + y1 ** 2 != x2 ** 2 + y2 ** 2: continue if abs(x1 * y2 - x2 * y1) == x1 ** 2 + y1 ** 2: print(x0 + x1 + x2, y0 + y1 + y2) exit() print(-1)