UVA12766 Grinding Grid
Description
[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=823&page=show_problem&problem=4619
[PDF](https://uva.onlinejudge.org/external/127/p12766.pdf)

Input Format

Output Format
