#coding: utf-8 ##yuki_55 def check(a,b,c): vbx=x[b]-x[a] vby=y[b]-y[a] vcx=x[c]-x[a] vcy=y[c]-y[a] if vbx*vcx+vby*vcy: return False if vbx*vbx+vby*vby!=vcx*vcx+vcy*vcy: return False x[3]=x[a]+vbx+vcx y[3]=y[a]+vby+vcy return True x=[0 for i in xrange(4)] y=[0 for i in xrange(4)] x[0],y[0],x[1],y[1],x[2],y[2]=map(int,raw_input().split()) if check(0,1,2) or check(1,0,2) or check(2,1,0): print x[3],y[3] else: print -1