#include #include #include #include #include #include #include using namespace std; #define int long long #define endl "\n" const long long INF = (long long)1e18; const long long MOD = 1'000'000'007; string yn(bool f){return f?"Yes":"No";} string YN(bool f){return f?"YES":"NO";} signed main(){ cin.tie(0); ios::sync_with_stdio(false); cout<,greater> Q; priority_queue Q; vector A, X; cin>>N; A.assign(N,0); for(int i = 0; i < N; i++){ cin>>A[i]; sum += A[i]; Q.push(A[i]); } cin>>q; X.assign(q,0); for(int i = 0; i < q; i++){ cin>>X[i]; // cout<= X[i]){ // cout<