题面
Binary search the sorted array with bsearch. If not found, output .
输入格式
The first line contains one integer ().
The second line contains space-separated integers . It is guaranteed that for . All numbers are distinct.
The third line contains one integer ().
The next lines each contains one integer , the number that is wanted.
All integers have absolute values no more than .
输出格式
For each query, report the index (starting from 1) where . If not found, output .
样例
输入
5 1 3 5 7 9 4 3 5 7 6
输出
2 3 4 -1