#include using namespace std; int main(){ cout << fixed << setprecision(20); int N; cin >> N; vector L(N); for (int i = 0; i < N; i++){ cin >> L[i]; } priority_queue> pq; for (int i = 0; i < N; i++){ pq.push(make_pair(L[i], 1)); } vector ans; for (int i = 0; i < 500000; i++){ double l = pq.top().first; int x = pq.top().second; pq.pop(); ans.push_back(l); pq.push(make_pair(l * x / (x + 1), x + 1)); } int Q; cin >> Q; for (int i = 0; i < Q; i++){ int K; cin >> K; cout << ans[K - 1] << endl; } }