#include #include #include #include using namespace std; int main(){ int n; cin>> n; vector a(n), b(n), wide(n); for(int i=0; i> a[i]>> b[i]; wide[i] = a[i]+4*b[i]; } sort(wide.begin(), wide.end()); bool flag = true; for(int i=1; i