#include using namespace std; #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 << p[i].first << ' ' << p[i].second << endl; }