UVA10877 Diceoids

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=20&page=show_problem&problem=1818 [PDF](https://uva.onlinejudge.org/external/108/p10877.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10877/ab88fd12caf4da08d77752fca97eb401cc5e87fb.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10877/31ac9753013e6078f46c3676ea60b2de70dc84a0.png)

Output Format

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