UVA986 How Many?

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=927 [PDF](https://uva.onlinejudge.org/external/9/p986.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA986/1d9d4632b07c378f8fb8e29e531b87dbcd635e37.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA986/7414765a56ca6f3c786d4b56f212e9ac719fd0a7.png)

Output Format

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