#include<bits/stdc++.h>
using namespace std;
int main(){
int n,x,y,m;
cin>>n>>x;
cout<<n+x;
cin>>y>>m;
cout<<y+m;
}
/**************************************************************
Problem: 1001
User: 12345678
Language: C++
Result: Wrong Answer
****************************************************************/