// BISMILLAH // AUTHOR: KAMRAN // Date: 2026-02-05 18:55 #include using namespace std; #define fast ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); #define int long long #define nl endl void solve(){ int n; cin>>n; vector>x(n); for(int i=0;i>x[i].first>>x[i].second; } sort(x.begin(),x.end()); map>freq; vectortemp(10e5); for(int i=0;i>m; while(m--){ pairy; cin>>y.first>>y.second; int low=0; int high=n-1; while(low<=high){ int mid=(low+high)/2; if(x[mid].first>y.first)high=mid-1; else low=mid+1; } // cout<>t; // while(t--) solve(); return 0; } /* 2 2 3 5 10 5 50 500 */