UVA10396 Vampire Numbers

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=15&page=show_problem&problem=1337 [PDF](https://uva.onlinejudge.org/external/103/p10396.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10396/782eccf04da2a3395ef4942a43aca908905b8406.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10396/55faafa4b220287e77acbf774fc35a7b53af2310.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10396/85c285329eec6a5a4c59196d318677d3bd2fac12.png)