UVA11012 Cosmic Cabbages

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=22&page=show_problem&problem=1953 [PDF](https://uva.onlinejudge.org/external/110/p11012.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11012/749d7d43d016bde2228ba1db4cba6eeeac40738d.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11012/b5e9d8c0322a162e7d2b954f3f50002f7063759d.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11012/79539e5521d3daa3006f4d6d028091131604831f.png)