UVA671 Spell checker

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=8&page=show_problem&problem=612 [PDF](https://uva.onlinejudge.org/external/6/p671.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA671/6f6575a9093ad071125df67de6b403c320214c9e.png)

Input Format

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

Output Format

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