UVA940 Autobiographical Numbers

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=881 [PDF](https://uva.onlinejudge.org/external/9/p940.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA940/76f691fbd2daa0565a25787dc40d30b683ad97ad.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA940/1d72f7fa9f7c14de3737e8c77fea32a533f5050c.png)