#include using namespace std; #define int long long #define REP(i,n) for(int i = 0;i < (int)(n);i++) templateinline bool CHMAX(T&a,T b){if(ainline bool CHMIN(T&a,T b){if(a>b){a = b;return true;}return false;} signed main(){ int N; cin >> N; int a=0,b=0; REP(i,N-1){ int aa,bb; cin>>aa>>bb; a+=aa;b+=bb; } cout<