The input contains several test cases. The first line of each test case contains an integer n(N等于100)
denoting the number of piles. The following n integers describe the number of stones in each
pile at the beginning of the game. The last test case is followed by one zero.