#include #include #include using namespace atcoder; using mint = modint998244353; using namespace std; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf 1000000 int main(){ int N; cin>>N; vector L(N); rep(i,N)cin>>L[i]; priority_queue> Q; rep(i,N){ Q.emplace(L[i],1); } vector ans(500005,0); double m = 1e10; for(int i=1;i>_q; rep(_,_q){ int K; scanf("%d",&K); cout<