Given , a set of integers, find the largest such that where are distinct elements of .
输入格式
Several , each consisting of a line containing an integer indicating the number of elements in , followed by the elements of , one per line. Each element of is a distinct integer between and inclusive. The last line of input contains .
输出格式
For each , a single line containing , or a single line containing no solution.