#include using namespace std; using ll = long long; const int N = 2e5 + 10; int a[N], b[N]; int main(){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n; cin >> n; ll s1 = 0, s2 = 0; for(int i=0; i> a[i] >> b[i]; s1 += a[i]; s2 += b[i]; } ll ans = 0; for(int i=0; i