CF600B Queries about less or equal elements

Description

You are given two arrays of integers $ a $ and $ b $ . For each element of the second array $ b_{j} $ you should find the number of elements in array $ a $ that are less than or equal to the value $ b_{j} $ .

Input Format

The first line contains two integers $ n,m $ ( $ 1

Output Format

Print $ m $ integers, separated by spaces: the $ j $ -th of which is equal to the number of such elements in array $ a $ that are less than or equal to the value $ b_{j} $ .