UVA12318 Digital Roulette

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=278&page=show_problem&problem=3740 [PDF](https://uva.onlinejudge.org/external/123/p12318.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12318/db17109182d7a7ce376d20e3651f5d249103921f.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12318/84682e6c0bb4eaf22e22d65ccc26b20b027a6d89.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12318/0d9d35d02f091c2077f4e4a9637b93ceec016d0f.png)