UVA12989 Mahjong

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=862&page=show_problem&problem=4872 [PDF](https://uva.onlinejudge.org/external/129/p12989.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12989/b6256af19f14b0679ed7fc981976cf6438796d79.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12989/6ce2a12470b0ddb444d41ade2a55202187b36c0e.png)