UVA11628 Another lottery

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=78&page=show_problem&problem=2675 [PDF](https://uva.onlinejudge.org/external/116/p11628.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11628/eae13d819b4a7afad67af8cec8d5b03890c91ab3.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11628/10ab7a1cdacae3c1f6b6b517027530046fc8f452.png)

Output Format

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