You now have an array and you can construct an array of any length, where each element is an element that has appeared in array . The set is all possible sums of the array , find the largest integer which is not in set .
输入描述:
The first line contains a single integer which is the size of array .
The second line contains integers which is the element of the array .
输出描述:
Output a single number - the maximun integer which is not in set , if the number is infinity, then output .