Ensure that you are logged in and have the required permissions to access the test.
Altaireon's college and its rival have come face to face today, and they are preparing a battle in Football Ground.
Altaireons college has N representatives each possessing a certain amount of power, similarly rival college has M representatives each with certain amount of power.
Altaireon being very much interested in data wants you to help him find how many representatives of rival college can be defeated by each of his own college's representatives.
A can defeat B if B's power is strictly greator than A's power.
Input:
First line contains N and M, denoting number of representatives of Altaireon's college and rival's college, respectively. Next two lines contain N and M integers respectively, denoting power of the representatives.
Output:
Print a single line containing N integers, ith of which denotes number of representatives of rival college which can be defeated by ith representatives of Altaireons college.
Constraints:
1≤N,M≤105
1≤power≤109