UVA466 Mirror, Mirror

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=6&page=show_problem&problem=407 [PDF](https://uva.onlinejudge.org/external/4/p466.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA466/e11f80e370d025b269a29bfaf8cdaa3b15014b8e.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA466/5af2a9b2a42c70bdc0e8a0571daf53b23b7b54a2.png)

Output Format

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