UVA11446 Where is the 'back' button?
Description
[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=26&page=show_problem&problem=2441
[PDF](https://uva.onlinejudge.org/external/114/p11446.pdf)

Input Format

Output Format
