#include <stdio.h>
#include <stdlib.h>
struct point
{
double x;
double y;
}point;
struct point s(struct point m,struct point n)
{
struct point o;
o.x=(m.x+n.x)/2;
o.y=(m.y+n.y)/2;
return o;
}
int main()
{
struct point m;
struct point n;
scanf("%lf %lf %lf %lf",&m.x,&m.y,&n.x,&n.y);
printf("%.lf %.lf",s(m,n));
}