UVA745 Numeric Puzzles Again!

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=9&page=show_problem&problem=686 [PDF](https://uva.onlinejudge.org/external/7/p745.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA745/83099b386884ba70d4f05e609d9a5ee909cf212b.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA745/8c840a248c2f29ed30a4d9a026fff5dbe334310a.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA745/7fc897f8b5598ea3758b1cdee0f45301c8af1430.png)