X1,Y1,X2,Y2,X3,Y3 = map(int, input().split()) if X1 == X2 == X3 or Y1 == Y2 == Y3: print(-1) elif X1 == X2: if abs(Y1 - Y2) == abs(X1 - X3): if Y1 == Y3: print(X3, Y2) elif Y2 == Y3: print(X3, Y1) else: print(-1) else: print(-1) elif X2 == X3: if abs(Y2 - Y3) == abs(X2 - X1): if Y2 == Y1: print(X1, Y3) elif Y3 == Y1: print(X1, Y2) else: print(-1) else: print(-1) elif X3 == X1: if abs(Y3 - Y1) == abs(X2 - X1): if Y3 == Y2: print(X2, Y1) elif Y1 == Y2: print(X2, Y3) else: print(-1) else: print(-1) else: X4 = X2 + X3 - X1 Y4 = Y2 + Y3 - Y1 XD4 = abs(max(X1, X2, X3, X4) - min(X1, X2, X3, X4)) YD4 = abs(max(Y1, Y2, Y3, Y4) - min(Y1, Y2, Y3, Y4)) X5 = X1 + X3 - X2 Y5 = Y1 + Y3 - Y2 XD5 = abs(max(X1, X2, X3, X5) - min(X1, X2, X3, X5)) YD5 = abs(max(Y1, Y2, Y3, Y5) - min(Y1, Y2, Y3, Y5)) X6 = X1 + X2 - X3 Y6 = Y1 + Y2 - Y3 XD6 = abs(max(X1, X2, X3, X6) - min(X1, X2, X3, X6)) YD6 = abs(max(Y1, Y2, Y3, Y6) - min(Y1, Y2, Y3, Y6)) if XD4 == YD4: print(X4, Y4) elif XD5 == YD5: print(X5, Y5) elif XD6 == YD6: print(X6, Y6) else: print(-1)