def d(x1,y1,x2,y2): return pow((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2),0.5) x1,y1,x2,y2,x3,y3 = map(int,input().split()) x,y = [x1,x2,x3],[y1,y2,y3] ansx,ansy = -1,-1 for i in range(3): for j in range(3): if i == j: continue for k in range(3): if i == k or j == k: continue ax = x[i] + (x[j] - x[i]) + (x[k] - x[i]) ay = y[i] + (y[j] - y[i]) + (y[k] - y[i]) if d(x[i],y[i],x[j],y[j]) == d(x[i],y[i],x[k],y[k]) == d(ax,ay,x[j],y[j]) == d(ax,ay,x[k],y[k]): ansx,ansy = ax,ay if ansx != -1: print(ansx,ansy) else: print(-1)