UVA12770 Palinagram

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=823&page=show_problem&problem=4623 [PDF](https://uva.onlinejudge.org/external/127/p12770.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12770/c2811a5986ceb269ddbc7356042c852a91c72a3c.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12770/5c235feab678689bd05c046b6ae4aae7adad1b38.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12770/00cf523fc5a52c26c73b127d0a86022bbde8e3d5.png)