UVA12618 I Puzzle You

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=602&page=show_problem&problem=4296 [PDF](https://uva.onlinejudge.org/external/126/p12618.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12618/a4ecc1979890c698140cb48eacd9e3cdabb9a1c2.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12618/4d3456682e196f594bde3691664546081dd90fa2.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12618/504af407b094a4ddc355ac991afee6fbf9e4b9ad.png)