UVA974 Kaprekar Numbers

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=915 [PDF](https://uva.onlinejudge.org/external/9/p974.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA974/680f88d5ffa6c5efa463c6f51587923acf5fa2ef.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA974/14139c6ca741c4795ab2c17782b6613e34d04c1a.png)

Output Format

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