UVA12327 Xavier is Learning to Count

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=278&page=show_problem&problem=3749 [PDF](https://uva.onlinejudge.org/external/123/p12327.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12327/da703ab46dc32afd93ac68e4f617f5b92d942f7a.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12327/46877efdb7ad6f5c25d4579ea94c67ca83a59014.png)