a=map(int,raw_input().split()) l=[complex(a[i],a[i+1]) for i in range(0,6,2)] for i in l: b,c=[j for j in l if j!=i] d,e,f=[j.real**2+j.imag**2 for j in [i-b,i-c,b-c]] if 2*d==2*e==f: r=b+c-i print int(r.real),int(r.imag) exit() print -1