a_n ，满足 &Sigma;a_i &nbsp;&le; 10^6 。</div>
<div>约 5 组数据满足 n &ge; 10^3 或 &Sigma;a_i &nbsp;&ge; 10^4 。</div>
<div></div></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>对于每组测试数据</div>
<div>输出一行两个非负整数，用一个空格隔开，前者表示可能的