UVA843 Crypt Kicker

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=10&page=show_problem&problem=784 [PDF](https://uva.onlinejudge.org/external/8/p843.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA843/f6357015796d575d62a454999a44c36498f46cef.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA843/6fb997d20b63cd487b04804963eac3a2dc72ad74.png)

Output Format

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