// 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()); int m; cin>>m; while(m--){ pairy; cin>>y.first>>y.second; int cnt=0; vectortemp(n); for(int i=0;iy.first)high=mid-1; else low=mid+1; } if(low==0){ cout<<0<>t; // while(t--) solve(); return 0; } /* 2 2 3 5 10 5 50 500 */