UVA13022 Sheldon Numbers

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=866&page=show_problem&problem=4910 [PDF](https://uva.onlinejudge.org/external/130/p13022.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13022/f9e2cb85d0785fbac5c8180a0f9d7ef3d9bfef75.png)

Input Format

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

Output Format

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