For a list of numbers in increasing order and a natural number between 0 and 100, both of them included, we define the th percentile as the (unique) number such that . Such will not exists when , , or when for any ; in these cases, the corresponding percentile is , , or .
The input consists of four lines. In the first one the number is given, and in the following one the integer numbers , in increasing order and separated by spaces. In the third line there is the number of questions. The fourth line contains numbers between and , both of them included, that correspond to the percentiles that your program must compute.
Your program must solve 10 inputs as the described ones in a time of 1 second.
For each one of the questions, your program must print in a line the corresponding percentile.
Input
10 0 1 2 3 4 5 6 7 8 9 8 0 100 13 20 25 40 75 80
Output
0 9 1 1.5 2 3.5 7 7.5
Input
20 -4 -3 -3 -3 -1 0 0 0 0 0 0 0 0 1 2 3 4 5 6 7 8 0 5 10 15 20 25 30 78
Output
-4 -3.5 -3 -3 -2 -0.5 0 3
Input
1 13 5 0 25 50 75 100
Output
13 13 13 13 13