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

Input

The first line contains two integers n, m (1 ≤ n, m ≤ 2·105) — the sizes of arrays a and b.

The second line contains n integers — the elements of array a ( - 109 ≤ ai ≤ 109).

The third line contains m integers — the elements of array b ( - 109 ≤ bj ≤ 109).

Output

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 bj.

Examples

Input

5 4
1 3 5 7 9
6 4 2 8


Output

3 2 1 4


Input

5 5
1 2 1 2 5
3 1 4 1 5


Output

4 2 4 2 5
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.StringTokenizer;

public class QueriesAboutLessOrEqualElements {
	public static void main(String[] args) {
		FastScanner scan = new FastScanner(System.in);
		int M = scan.nextInt();
		int N = scan.nextInt();
		ArrayList<Integer> A = new ArrayList<>(M);
		int[] B = new int[N];
		HashMap<Integer, Integer> hash = new HashMap<Integer, Integer>();
		for (int i = 0; i < M; i++)
			A.add(scan.nextInt());
		for (int i = 0; i < N; i++) {
			B[i] = scan.nextInt();
			hash.put(B[i], 0);
		}
		Collections.sort(A);
		StringBuilder result = new StringBuilder();
		for (int i = 0; i < N; i++) {
			if (hash.get(B[i]) != 0) {
				result.append(hash.get(B[i]));
				result.append(" ");
			} else {
				int temp = Collections.binarySearch(A, B[i]);
				if (temp >= 0) {
					while (temp < A.size() && A.get(temp) == B[i])
						temp++;

					result.append(temp);
					result.append(" ");
					hash.put(B[i], temp);

				} else {
					temp = -temp - 1;
					result.append(temp);
					result.append(" ");
					hash.put(B[i], temp);
				}
			}
		}
		System.out.println(result);
	}

	static class FastScanner {
		public BufferedReader reader;
		public StringTokenizer tokenizer;

		public FastScanner(InputStream stream) {
			reader = new BufferedReader(new InputStreamReader(stream), 32768);
			tokenizer = null;
		}

		public String next() {
			while (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new RuntimeException(e);
				}
			}
			return tokenizer.nextToken();
		}

		public int nextInt() {
			return Integer.parseInt(next());
		}
	}
}
