UVA11614 Etruscan Warriors Never Play Chess

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=78&page=show_problem&problem=2661 [PDF](https://uva.onlinejudge.org/external/116/p11614.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11614/a2863fe9cb70a3ff260d657dc6c615e91cc97ff3.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11614/39797041a0234a629104bd155213ac45e622b54a.png)

Output Format

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