UVA10909 Lucky Number

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=21&page=show_problem&problem=1850 [PDF](https://uva.onlinejudge.org/external/109/p10909.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10909/5f8bf5bcdb2aa0c96d5e5bbf95c151896dd9b32a.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10909/4e80754c5f4dcd292963b8b49e174421cf700d62.png)

Output Format

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