UVA10665 Diatribe against Pigeonholes

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=18&page=show_problem&problem=1606 [PDF](https://uva.onlinejudge.org/external/106/p10665.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10665/b8ee1785ef8a3ff177852611a4524e441a60719b.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10665/9c69e58597661ef7dc4586aebcad83eeefb66e47.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10665/70c9a7c61a6289273f8720920c9b4a121ec99748.png)