UVA733 Follow the Folding Dot

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=9&page=show_problem&problem=674 [PDF](https://uva.onlinejudge.org/external/7/p733.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA733/0793c1032654315bb9bcfc0c2f759190ffe4df54.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA733/1a2be0796949ed52ff3a427b25977ba1a428a17e.png)