#Lutece0680. Betrand-Chebyshev

Betrand-Chebyshev

Migrated from Lutece 680 Betrand-Chebyshev

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

Zplinti1 has recently learn rand() function in C/C++. He is so excited, since he finds using that function is easy and convenient. For example, if you want to generate a integer randomly from 00 to 99, he can simply write rand()%10.

However, rand() function can’t generate a number which is too large. The maximum number is 3276732767, by default. Zplinti1 is not satisfied with that!

Clever as he is, he quickly gets a way: he can multiply some rand() functions together, to get a much larger number. If he write ( rand()%10000 ) * ( rand()%10000 ), he can get a number as large as 9999×99999999\times 9999.

Unfortunately, one of his friends, bearchild, soon finds the problem: some numbers might not be got using his way described above. Zplinti1 wants to find the minimum number that cannot be got.

More precisely, we have nn numbers, from a0a_0 to an1a_{n-1}. And for number aia_i, it is a value randomly chosen from 00 to bib_i, then we set XX as the product of those nn numbers, what is the minimum positive number that cannot be the value of XX? If there is no problem with the new function, output Good Function.

Input

The first line of input contains a number TT, indicating the number of cases. (T1000T\leq 1000)

For each case, the first line is a number nn (1n10,0001\leq n \leq 10,000). The second line contains nn numbers from b0b_0 to bn1b_{n-1}, all those numbers are positive numbers less than 1,000,000,0001,000,000,000.

Output

For each case, output Case #i: first. (ii is the number of the test case, from 11 to TT). Then output the minimum value that XX cannot be, or Good Function, as described above.

Samples

输入数据 1

4
2
2 3
2
4 5
3
4 7 11
3
1 1 2

输出数据 1

Case #1: 5
Case #2: 7
Case #3: 13
Case #4: Good Function

Note

As you can see, the maximum number zplinti1 can get is the product of b0b_0 to bn1b_{n-1}, when each rand() function get its largest number. If the answer you get is larger than this maximum, you have to output Good Function, and it is the only case you need to output that.

Resources

11th UESTC Programming Contest Preliminary