UVA10013 Super long sums

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=954 [PDF](https://uva.onlinejudge.org/external/100/p10013.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10013/adda3425259c9630eb7feb26a2d0291a4c98e3a9.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10013/7f926c98e824b66e28409b1e416e049c3213d073.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10013/4414f3734f7645df7e0854716a72e531b5895b1b.png)