#include using namespace std; int main(){ int n; cin>>n; vector>P(n); vector>Q(n); int a,b; for(int i=0;i>a>>b; P[i].first=a; P[i].second=b; Q[i].first=(double)a/b*(-1); Q[i].second=i; } sort(Q.begin(),Q.end()); for(int i=0;i