UVA12040 Again Lucky Numbers

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=242&page=show_problem&problem=3191 [PDF](https://uva.onlinejudge.org/external/120/p12040.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12040/899f2cff3854028c1e25b89b451bb4e60289ac97.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12040/030251be332ace5e74f93ddd5748c772244a5bad.png)