#include using namespace std; using ll =long long; void solve(){ map M; ll N; cin>>N; for(int i=0;i>A; M[A]++; } ll Q; cin>>Q; for(int q=0;q>x>>k; cout<<(M[x]>=k?"Yes\n":"No\n"); } } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int T=1; // cin>>T; while(T--)solve(); }