UVA11132 Dice from pennies

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2073 [PDF](https://uva.onlinejudge.org/external/111/p11132.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11132/e67872f6075a03e58b51e3ad94e423bac272363f.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11132/248de6a0f6cf26bc615ae8fd39c2d236c46db224.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11132/90e7c5c2263394a9979ebc2d6c6811b907f55b42.png)