Given array of integers . For the given value of find such that is maximum.
First line contains number and number of queries . Second line contains integers . Each of the next lines contains one number .
For each value of print in a separate line such value that is maximum.