#include<iostream>
using namespace std;
class point
{ float x,y;
public:
void setv(float x1,float y1) { x=x1;y=y1;}
float getx() { return x;}
float gety() { return y;}
};
class rectangle:public point
{ float a,b;
public:
void set(float a1,float b1) { a=a1;b=b1;}
void show() { cout<<getx()+a<<' '<<gety()+b<<endl; }
};
int main()
{
float x,y,a,b;
rectangle d;
while(cin>>x>>y>>a>>b)
{ d.setv(x,y);
d.set(a,b);
d.show(); }
}