#include using namespace std; typedef long long ll; int main(){ int N; cin >> N; //vector zahyou(N+2); vector X(N); vector Y(N); int saishou, flag=0; int num=0; for(int i=0;i> X.at(i); } for(int i=0;i> Y.at(i); } saishou = X.at(0)+Y.at(0); for(int i=0;iY.at(num)+X.at(num)) cout << Y.at(num)+X.at(num) << endl; else cout << X.at(i-1) << endl; } } return 0; }