#include "bits/stdc++.h" #define REP(i,n) for(int i=0;i>n; vector>p(n); REP(i,n)cin>>p[i].first>>p[i].second; sort(p.begin(),p.end()); REP(i,n)cout<