UVA12239 Bingo!

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=244&page=show_problem&problem=3391 [PDF](https://uva.onlinejudge.org/external/122/p12239.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12239/5b213fce6c8eacd51abcfe5970a46e5ceb863b57.png)

Input Format

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

Output Format

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