#include using namespace std; int main(int argc, char* argv[]) { int X1,Y1,X2,Y2,X3,Y3; cin>>X1>>Y1>>X2>>Y2>>X3>>Y3; int D12=(X1-X2)*(X1-X2)+(Y1-Y2)*(Y1-Y2); int D22=(X1-X3)*(X1-X3)+(Y1-Y3)*(Y1-Y3); int D23=(X2-X3)*(X2-X3)+(Y2-Y3)*(Y2-Y3); int dMin=min(D12,min(D22,D23)); int dMax=max(D12,max(D22,D23)); int x1,y1,x2,y2,x3,y3; if (D12==D22){ x1=X2; y1=Y2; x2=X3; y2=Y3; x3=X1; y3=Y1; }else if (D12==D23){ x1=X1; y1=Y1; x2=X3; y2=Y3; x3=X2; y3=Y2; }else if (D22==D23){ x1=X1; y1=Y1; x2=X2; y2=Y2; x3=X3; y3=Y3; }else{ cout<<-1<