UVA10345 Cricket/Football Goes Down

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=15&page=show_problem&problem=1286 [PDF](https://uva.onlinejudge.org/external/103/p10345.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10345/8082f714cbace912b781e239742fcb6dfffb513e.png)

Input Format

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

Output Format

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