#include using namespace std;main(){int n;cin>>n;vector>a(n);for(auto&e:a)cin>>e.first>>e.second;sort(begin(a),end(a));for(auto e:a)cout<