UVA12918 Lucky Thief
Description
[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=862&page=show_problem&problem=4797
[PDF](https://uva.onlinejudge.org/external/129/p12918.pdf)

Input Format

Output Format
