UVA441 Lotto

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=6&page=show_problem&problem=382 [PDF](https://uva.onlinejudge.org/external/4/p441.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA441/31bdc8bb44b969652a4679f661e63979708efd8b.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA441/21d99cdb64151c668fd2366f4d007176a1876aa0.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA441/97c1eb47e5db50d6248ec667c7cf00c870f5e33f.png)