UVA10131 Is Bigger Smarter?

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=13&page=show_problem&problem=1072 [PDF](https://uva.onlinejudge.org/external/101/p10131.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10131/3950c0fe558da59235b74cc3399b8828661f81de.png)

Input Format

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

Output Format

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