Given an array of integers. Sort it in ascending order.
Then answer queries: for each input value print .
The first line contains the size of array and the number of queries .
The second line contains the array elements .
Each of the following lines contains a query: one integer .
For each query print on a separate line: the -th number in the sorted array.
Sort the numbers in the given sample:
The answers to the queries are: .