import sys,numpy as np,itertools input=lambda:sys.stdin.readline().rstrip() temp=list(map(int,input().split())) points=[np.array(temp[i:i+2]) for i in range(0,6,2)] n=lambda x:np.linalg.norm(x,ord=2) for i in itertools.permutations(points,3): if np.dot(i[0]-i[1],i[0]-i[2])!=0 or n(i[0]-i[1])!=n(i[0]-i[2]): continue print(*(i[1]+i[2]-i[0])) break else: print(-1)