�感兴趣，又会回复一定</div>
<div>的脑细胞。</div>
<div>好心的学长不希望看到wyh8000的脑细胞死光，你能帮助wvh8000死掉尽可能少的脑细胞吗？</div></div></div></div></div><div class="row"><div class="column"><h4 class="ui top attached block header">输入格式</h4><div class="ui bottom attached segment font-content"><div style="position: relative; overflow: hidden;"><div class=content><div>第一行五个非负整数K，M，D，A，N。</div>
<div>K，M，D，A�