x1,y1,x2,y2,x3,y3=map(int,input().split()) if (x2-x1)**2+(y2-y1)**2==(x3-x1)**2+(y3-y1)**2 and (x2-x1)*(x3-x1)+(y2-y1)*(y3-y1)==0: print(x3+(x2-x1),y3+(y2-y1)) elif (x3-x2)**2+(y3-y2)**2==(x1-x2)**2+(y1-y2)**2 and (x3-x2)*(y3-y2)+(x1-x2)*(y1-y2)==0: print(x1+(x3-x2),y1+(y3-y2)) elif (x1-x3)**2+(y1-y3)**2==(x2-x3)**2+(y2-y3)**2 and (x1-x3)*(y1-y3)+(x2-x3)*(y2-y3)==0: print(x2+(x1-x3),y2+(y1-y3)) else: print(-1)