UVA10222 Decode the Mad man

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=14&page=show_problem&problem=1163 [PDF](https://uva.onlinejudge.org/external/102/p10222.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10222/e71cbb89a0890ba7f6599acda30c0f801d7c542c.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10222/9a1396f62dc1491b88428be87c856cd27e3b9ade.png)

Output Format

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