UVA370 Bingo

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=5&page=show_problem&problem=306 [PDF](https://uva.onlinejudge.org/external/3/p370.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA370/e86f49784df73f382995e49fb21194b79d99775b.png)

Input Format

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

Output Format

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