#P331. 【例56.2】 购买饮料

【例56.2】 购买饮料

Description

Little B is out for a walk and has come across nn beverage shops. The cost of a drink at the ii-th shop is costicost_i. 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 mm queries, if he has aia_i dollars, how many beverage shops can he choose from?

Input Format

The first line contains two integers nn and mm.
The second line contains nn integers, where the ii-th integer represents costicost_i.
The next mm lines each contain an integer representing a query. 1n,m,costi1061≤n, m, cost_i≤10^6, 1ai1091≤a_i≤10^9.

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
5
3
5