You are given an array . You can decrement any element of the array by . This operation can be repeated any number of times. A number is said to be missing if it is the smallest positive number that is a multiple of that is not available in array . You are required to determine the maximum missing number after all possible decrements of the elements.
Input format
Output format
Print the answer for each test case in a new line.
Constraints
In the first sample test case, for 0 based indexing, if we decrement the to 2, to 4 and to 6. the array becomes . The smallest positive multiple of 2 which is not in the modified array is 8, thus the missing number is 8.
In the second sample test case, with or without decrements we can get 2 as the only multiple of 2 in the array, thus the missing number is 4.