The first line contains two positive integers, indicating the length of the sequence
and the number of queries
.
The second line containspositive integers, representing each number in the sequence.
Nextlines each contain an integer, indicating the value of
for each query.
For each query, output one integer representing the answer.