#include using namespace std; using Int = long long; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a>n; n--; vector as(n),bs(n); for(Int i=0;i>as[i]>>bs[i]; Int sa=0,sb=0; for(Int a:as) sa+=a; for(Int b:bs) sb+=b; if(sa