UVA761 Transform those strings

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=9&page=show_problem&problem=702 [PDF](https://uva.onlinejudge.org/external/7/p761.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA761/e4d852fbe126f2df906aad24cae53b9b70af0067.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA761/17c91af7dab5c14493f216bdd3124eccf8259f44.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA761/9820c4c119d26e1ee32da3b01dafdc1c6aee73dd.png)