UVA169 Xenosemantics

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=105 [PDF](https://uva.onlinejudge.org/external/1/p169.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA169/a88669e4964c7ed4d3921493e51750e3f6e198dc.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA169/9e3d3dcc436923ca0ed63897643def411bf2be95.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA169/87ec643a2c2140a1cd0f4d04f113994ad6460764.png)