#include #include #include #include using namespace std; typedef long long lint; typedef vectorvi; typedef pairpii; #define rep(i,n)for(int i=0;i<(int)(n);++i) #define DEBUG 0 #define M 214514 int n,m,q; int a[M],b[M]; vi tu[M]; vi mv[M]; int main(){ cin>>n>>m; rep(i,m)cin>>a[i]; cin>>q; rep(i,q)cin>>b[i]; //assert assert(1<=n&&n<=1000000); assert(1<=m&&m<=n&&n<=200000); rep(i,m-1)assert(a[i]=p){ cout<<"NO"<=tu[i].size())break; mv[i].push_back(pren){ cout<<"NO"<