The input consists of several test cases. The first line of each case contains two integers m (2<m<20) and n (1<n<50), representing the number of players and the number of cards each player receives at the beginning of the game, respectively. This followed by a line with n positive integers, representing the pips of cards you received at the beginning. Then a blank line follows to separate the cases.
The input is terminated by a line with two zeros.2 5
1 7 2 10 9
0 0
Case 1: 2