#include using namespace std; #define int long long signed main(){ int N; cin>>N; map> m; for(int i=0;i>a>>b; m[a/b] = {a,b}; } for(auto x:m){ cout<