#include <iostream>using namespace std;int main(){ int x,y,a,b; cin>>x>>y; cin>>a>>b; cout<<x+y<<endl; cout<<a+b<<endl; return 0;}