UVA12517 Digit Sum

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=441&page=show_problem&problem=3962 [PDF](https://uva.onlinejudge.org/external/125/p12517.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12517/8ea1e87feac0f8c4409f929c9daa85b21d7033eb.png)

Input Format

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

Output Format

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