UVA12755 Easy Puzzle

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=823&page=show_problem&problem=4608 [PDF](https://uva.onlinejudge.org/external/127/p12755.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12755/da3d823d33e0c5e452da403aa9bbab1ba559b8c2.png)

Input Format

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

Output Format

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