UVA454 Anagrams

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=6&page=show_problem&problem=395 [PDF](https://uva.onlinejudge.org/external/4/p454.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA454/2d0e90e5da8bacc3119df8fdd6745aaf17e63820.png)

Input Format

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

Output Format

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