UVA10198 Counting

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=13&page=show_problem&problem=1139 [PDF](https://uva.onlinejudge.org/external/101/p10198.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10198/69fbd6bb0925752916199045573a71c94d3e2fa3.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10198/09b7f4de25dab95e58b2a4d3beac530645a557c1.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10198/80d94203afa0f10e0d511583c6a98ac38b44cf0f.png)