The lab at CSHS (Computer Science High School) has M computers in a row. The computers are numbered 1 to M from left to right.
N students are already sitting in the lab, at computers A1, A2, ..., AN. Self study starts soon, so M−N more students come in and use one free computer each.
A student dislikes having another student look at their monitor, so each student who comes in takes a seat this way.
The students who are already seated entered first. So for i≤N, the i-th student to enter sits at computer Ai, and for i>N, the i-th student to enter is the (i−N)-th student who takes a seat by the rule above.
Jinhwan has a team project with Q friends, so he needs to know where they sit. He knows the position of each friend in the entering order. Help Jinhwan and find the seat of each friend.
The first line contains the number of computers M, the number of students already seated N, and the number of friends Q.
The second line contains N integers. The i-th value is the position Ai of a seated student. Note that the students already seated may not have taken their seats by the rule above.
The third line contains Q integers. The i-th value is Bi, the position of the i-th friend in the order of entering the lab.
A and B are ascending. That is, 1≤A1<A2<⋯<AN≤M and 1≤B1<B2<⋯<BQ≤M always hold.
Print Q lines. Line i holds the number of the computer where the i-th friend sits. The integers involved go past the range of a 32-bit integer, so use a 64-bit integer type.