UVA11826 Shuffle

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=226&page=show_problem&problem=2926 [PDF](https://uva.onlinejudge.org/external/118/p11826.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11826/9906aee98b10e1cf3fc5bbf0c6bd45505bd2c945.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11826/3a7a8bfab98def2e01a39e5d298632bb08bda0d0.png)

Output Format

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