* Line 1: N (1 <= N <= 100) and M (1 <= M <= N) separated by a space. The total number of cows in all the gangs will be N. The total number of gangs is M.

* Lines 2..1+M: The (1+i)th line indicates how many members are in gang i. Each gang has at least 1 member.