UVA11207 The easiest way

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=2148 [PDF](https://uva.onlinejudge.org/external/112/p11207.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11207/0fb522ff9ba92c22bbf62c98ead2148d0dde68f2.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11207/116f6ba415cca24aae975576d8302391ec889c60.png)

Output Format

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