x1,y1,x2,y2,x3,y3 = map(int,input().split()) flag = -1 def dot(a,b): return a[0]*b[0]+a[1]*b[1] a1 = (x2-x1,y2-y1) b1 = (x3-x1,y3-y1) if dot(a1,b1)==0 and dot(a1,a1)==dot(b1,b1): flag = 1 ans = (x1+a1[0]+b1[0],y1+a1[1]+b1[1]) if flag==-1: a2 = (x1-x2,y1-y2) b2 = (x3-x2,y3-y2) if dot(a2,b2)==0 and dot(a2,a2)==dot(b2,b2): flag = 1 ans = (x2+a2[0]+b2[0],y2+a2[1]+b2[1]) if flag==-1: a3 = (x1-x3,y1-y3) b3 = (x2-x3,y2-y3) if dot(a3,b3)==0 and dot(a3,a3)==dot(b3,b3): flag = 1 ans = (x3+a3[0]+b3[0],y3+a3[1]+b3[1]) if flag==-1: print(-1) else: print(*ans)