#include<bits/stdc++.h>usingnamespace std;structnode{
int x , y , st , ed;};constint N =100005, M =200005, T =100005;int n , m , t;
node e[M];
vector<int> ve[M *4+5];voidmodi(int l,int r,int k,int x,int y,int now){
if(l <= x && y <= r){
ve[now].push_back(k);return;}int mid =(x + y)>>1, ls = now <<1, rs = now <<1|1;if(mid >= l)modi(l,r,k,x,mid,ls);if(r > mid)modi(l,r,k,mid+1,y,rs);}voiddfs(int x,int y,int now,int OK){
int ncnt =0;if(!OK)for(int i=0