UVA10633 Rare Easy Problem

Description

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

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10633/886364e72edb25390d4318aae4dcc353a2c93503.png)