You are given an array A of length N. For any given integer X, you need to find an integer Z strictly greater than X such that Z is not present in the array A. You need to minimise the value of Z.
Input format :
Output fomat :
Constraints :
For the first query, the minimum element greater than 3 and not present in the given array is 4. Similarly, for the second query, the answer is 10.