UVA113 Power of Cryptography

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=49 [PDF](https://uva.onlinejudge.org/external/1/p113.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA113/ad5da255ca2d2cfd729a6dc4d6eeea20891ba112.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA113/8a7bc04234662098a3594514c3c2431b84c61c32.png)