There is a magical candy box in which it gives some random number of candies every day.But after N days its magical power will be lost. So you can collect some random number of candies everyday for N days.
Now you will be asked Q queries. In each query you have to answer number of days it took to collect M number of candies.
First line of test case contains N denoting number of days.
Next line there will be N space seperated integers denoting Number of candies you get each day.
Next line contains Q dentoing number of queries and next q lines followed by M .
For each of the Q queries, you have to output the number of days taken to collect M number of candies in a new line.