�式</h4><div class="ui bottom attached segment font-content"><div style="position: relative; overflow: hidden;"><div class=content><p><font size="4">&nbsp;* Line 1: N (1 &lt;= N &lt;= 100) and M (1 &lt;= M &lt;= N) separated by a space. The total number of cows in all the gangs will be N. The total number of gangs is M.</font></p>
<p><font size="4">&nbsp;* Lines 2..1+M: The (1+i)th line indicates how many members are in gang i. Each gang has at least 1 member.&nbsp;</font></p></div></div></div></div></div