#include using namespace std; typedef long long ll; ll n,d[111111]; ll solve(ll x) { sort(d,d+n); if(!x) return 0; for(ll i=0; i> n; for(ll i=0; i> d[i]; cin >> x >> y; cout << solve(abs(x)+abs(y)) << endl; return 0; }