Problem Statement
You are given a list of
integers
. You are also given
queries, for each query, you are give some integer
should output the number of unique integers less than
in
.
Input Format
Your first line will contain and
.
Your next line will contain
space-separated integers
.
Your next
lines will contain one integer each.
Output Format
For each query, you should output an integer representing the number of UNIQUE (non-duplicate) numbers (strictly) less than it in .
Constraints
## Sample Cases
Input 1
10 3
1 4 4 5 6 -2 4 2 5 10
14
5
7
Output 1
7
4
6
Explanation 1
There are 7 integers less than 14, being .
There are 4 integers less than 5, being
.
There are 6 integers less than 7, being
.
Comments