UVA11970 Lucky Numbers

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=229&page=show_problem&problem=3121 [PDF](https://uva.onlinejudge.org/external/119/p11970.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11970/8d3fa0d2c81a1a0613a4f214210e01b7ba6fbc15.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11970/159f1eccc7a8b764c260b9d30bae73f68876438d.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11970/181354f9e0941a6100179197285db968faab8a8e.png)