#include #include #include using namespace atcoder; using mint = modint998244353; using namespace std; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf32 1000000001 #define Inf64 1000000000000000001 vector> get(vector> xy,int f){ if(xy.size()<=2)return xy; vector> ret; vector> A; vector> B; if(f==0){ sort(xy.begin(),xy.end()); } else{ sort(xy.begin(),xy.end(),[&](pair a,pair b){ return make_pair(a.second,a.first)>_t; rep(_,_t){ int N,L; cin>>N>>L; vector> x(N); rep(i,N){ cin>>x[i].first>>x[i].second; } auto ans = get(x,0); cout<