UVA494 Kindergarten Counting Game

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=6&page=show_problem&problem=435 [PDF](https://uva.onlinejudge.org/external/4/p494.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA494/e2708466e9097e1fdff41de3b593e885b5179605.png)

Input Format

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

Output Format

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