import itertools Z = list(map(int,input().split())) X, Y = Z[0::2], Z[1::2] P = list(itertools.permutations([0,1,2])) for a,b,c in P: if Y[a]-Y[b] == X[c]-X[b] and X[b]-X[a] == Y[c]-Y[b]: print(X[a]+X[c]-X[b], Y[a]+Y[c]-Y[b]) break else: print(-1)