#D3953. Count
Count
Count
For a given sequence of integers , perform the following operations.
- count(): print the number of the specific values in .
Constraints
Input
The input is given in the following format.
:
The number of elements and each element are given in the first line and the second line respectively. In the third line, the number of queries is given and the following lines, integers are given as queries.
Output
For each query, print the number of specified values.
Example
Input
9 1 4 1 4 2 1 3 5 6 3 0 9 1 1 6 1 3 7 5
Output
3 2 0
inputFormat
Input
The input is given in the following format.
:
The number of elements and each element are given in the first line and the second line respectively. In the third line, the number of queries is given and the following lines, integers are given as queries.
outputFormat
Output
For each query, print the number of specified values.
Example
Input
9 1 4 1 4 2 1 3 5 6 3 0 9 1 1 6 1 3 7 5
Output
3 2 0
样例
9
1 4 1 4 2 1 3 5 6
3
0 9 1
1 6 1
3 7 5
3
2
0
</p>