For a long time, they have been breeding beautiful multicolored animals at the Institute of Art, Mutants, and Information Technologies. For convenience, a color is indicated by its number, and the number of colors does not exceed 10^9. On one fine day, a miracle occurred at the breeding site: all animals lined up in increasing order by their color. Taking advantage of this event, the lab assistants decided to count the number of animals in different colors at the breeding site, and according to the style guide, you are asked to write a program that can help solve this not-so-simple task.
The first line of the input file contains a single integer (0 ≤ n ≤ 10^5) representing the number of animals. The next line contains non-negative integers not exceeding 10^9 and separated by spaces, sorted in non-decreasing order, representing their colors. The third line contains an integer (0 ≤ m ≤ 10^5) representing the number of queries in the program. The next line contains non-negative integers separated by spaces, representing the queries of your program (no more than 10^9).
The output file should contain lines. For each query, output the number of animals of the given color at the breeding site.
Example 1