UVA12278 3-sided dice

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=244&page=show_problem&problem=3430 [PDF](https://uva.onlinejudge.org/external/122/p12278.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12278/62671b8a2ab9f54cf87c79b5fd0a93fb053d44ab.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12278/7641058195442d8d71d6125370f98354c709e416.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12278/5c9d411b723a84c5311f9fe69e0b4ea2208e4a08.png)