UVA12857 Dividing the names

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=861&page=show_problem&problem=4722 [PDF](https://uva.onlinejudge.org/external/128/p12857.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12857/bd49842b5abe90cfd9b3cfb1b15dda84b6e66154.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12857/33b60c302ddb2ae746aedd1db38c32cb3bbe7e15.png)

Output Format

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