UVA11967 Hic-Hac-Hoe

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=229&page=show_problem&problem=3118 [PDF](https://uva.onlinejudge.org/external/119/p11967.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11967/8bc965ad6aa25c41d332eb3cb1b0af00987ad2b8.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11967/4a00644a2b81c9bd122913185719cc791f03528a.png)