from itertools import permutations X1,Y1,X2,Y2,X3,Y3 = map(int,input().split()) X = [X1, X2, X3] Y = [Y1 ,Y2, Y3] L = [i for i in range(3)] L = list(permutations(L, 3)) for a,b,c in L: X1,Y1 = X[a],Y[a] X2,Y2 = X[b],Y[b] X3,Y3 = X[c],Y[c] AB = (X2 - X1) ** 2 + (Y2 - Y1) ** 2 BC = (X3 - X2) ** 2 + (Y3 - Y2) ** 2 CA = (X1 - X3) ** 2 + (Y1 - Y3) ** 2 if AB != BC or AB + BC != CA: continue P,Q = (X1 + X3) / 2, (Y1 + Y3) / 2 print(int(P * 2 - X2), int(Q * 2 - Y2)) exit() print(-1)