class Vector2(): def __init__(self,x=0,y=0): self.x=x self.y=y def __neg__(self): return Vector2(-self.x,-self.y) def __add__(self,other): v=Vector2() v.x=self.x+other.x v.y=self.y+other.y return v def __sub__(self,other): return self+(-other) def inner(u,v): return u.x*v.x+u.y*v.y def __str__(self): return "{} {}".format(self.x,self.y) X=[0,0,0] Y=[0,0,0] X[0],Y[0],X[1],Y[1],X[2],Y[2]=map(int,input().split()) V=[] for k in range(3): V.append(Vector2(X[k],Y[k])) f=0 for i in range(3): j=(i+1)%3 k=(i-1)%3 u,v,w=V[i],V[j],V[k] if (f==0) and ((v-u).inner(v-u)==(w-u).inner(w-u)) and (v-u).inner(w-u)==0: f=1 print(-u+v+w) if f==0: print(-1)