UVA613 Numbers That Count

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=8&page=show_problem&problem=554 [PDF](https://uva.onlinejudge.org/external/6/p613.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA613/590af376afcab3bea3be13e8c56766588376e973.png)

Input Format

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

Output Format

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