UVA13233 Easy Permutation Problem

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=878&page=show_problem&problem=5156 [PDF](https://uva.onlinejudge.org/external/132/p13233.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13233/f1f50036ff7ae89479bee8a3a32bf29d02d7a7f8.png)

Input Format

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

Output Format

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