UVA425 Enigmatic Encryption

Description

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

Input Format

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

Output Format

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