#P331. 【例56.2】 购买饮料
【例56.2】 购买饮料
Description
Little B is out for a walk and has come across beverage shops. The cost of a drink at the -th shop is . He can only visit shops where the cost does not exceed the amount of money he has. However, he is unsure about how much money he has in his pocket. Given queries, if he has dollars, how many beverage shops can he choose from?
Input Format
The first line contains two integers and .
The second line contains integers, where the -th integer represents .
The next lines each contain an integer representing a query. , .
Output Format
For each query, output the number of beverage shops Little B can choose from.
Sample
5 2
1 2 3 4 5
3
53
5