#include #include #include using namespace std; using namespace atcoder; using mint = modint998244353; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf 1000000000 int main() { int n; cin>>n; vector> a(n); rep(i,n)cin>>a[i].first>>a[i].second; sort(a.rbegin(),a.rend(),[](pair x,pair y){ return x.first*y.second < x.second*y.first; }); rep(i,n){ cout<