#BS0000015. Số dương bị thiếu thứ k (Kth Excluded)

Số dương bị thiếu thứ k (Kth Excluded)

Kth Excluded

Source: AtCoder

Version: Phuoc Hung OJ Extended

Problem Statement

You are given a strictly increasing sequence of NN positive integers. For query ii, you are given a positive integer KiK_i. Find the KiK_i-th smallest positive integer that is different from every element of the sequence.

Input

The first line contains NN and QQ.

The second line contains A1,…,ANA_1,\ldots,A_N.

The next QQ lines contain K1,K2,…,KQK_1,K_2,\ldots,K_Q, one value per line.

Output

Print one answer per query.

Subtasks

  • Subtask 1 — 20%: N,Q≤1000N,Q\le1000, Ai,Ki≤106A_i,K_i\le10^6.
  • Subtask 2 — 30%: N,Q≤30000N,Q\le30000, Ai,Ki≤1018A_i,K_i\le10^{18}.
  • Subtask 3 — 50%: 1≤N,Q≤1051\le N,Q\le10^5, 1≤A1<⋯<AN≤10181\le A_1<\cdots<A_N\le10^{18}, 1≤Ki≤10181\le K_i\le10^{18}.

Examples

Input

4 3
3 5 6 7
2
5
3

Output

2
9
4

Explanation

The missing positive integers are 1,2,4,8,9,10,…1,2,4,8,9,10,\ldots.