Ingenuous Cubrency
题目描述
[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2078
[PDF](https://uva.onlinejudge.org/external/111/p11137.pdf)
![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11137/1d6be845b1ad218504f79b963bd64bd4f388a863.png)
输入输出格式
输入格式
![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11137/8bdee84b2f0ec8c81ec280e8b33d9068f21c6d20.png)
输出格式
![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11137/bc2b4f2184a3c4e5a78e4e8275ae55756a388f1d.png)
输入输出样例
输入样例 #1
10
21
77
9999
输出样例 #1
2
3
22
440022018293