UVA664 Single-Player Games
Description
[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=8&page=show_problem&problem=605
[PDF](https://uva.onlinejudge.org/external/6/p664.pdf)

Input Format

Output Format
