UVA11418 Clever Naming Patterns

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=26&page=show_problem&problem=2413 [PDF](https://uva.onlinejudge.org/external/114/p11418.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11418/4052445ce9f5f2f10bcbf0526a691790c1e69a71.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11418/21cf0bd632b1337bccae8fd94f21f21901063a8a.png)

Output Format

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