UVA11454 Very well informed domino player

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=26&page=show_problem&problem=2449 [PDF](https://uva.onlinejudge.org/external/114/p11454.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11454/458f69d378cc4a8794857a2dee5f9861b608b2da.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11454/1309403364397967eba3493d94fd901a3cd5461e.png)