#include
int main()
{float x1,y1,x2,y2,x,y;
scanf("%f%f%f%f",&x1,&y1,&x2,&y2);
x=(x1+x2)/2;
y=(y1+y2)/2;
printf("中点坐标:(%f,%f)\n",x,y);
if(x==0)printf("在Y轴上\n");
else if(y==0)printf("在X轴上\n");
else if(x>0)
if(y>0)printf("在第I象限\n");
else printf("在第IV象限\n");
else
if(y>0)printf("在第II象限\n");
else printf("在第III象限\n");
return 0;
}