UVA633 A Chess Knight

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=8&page=show_problem&problem=574 [PDF](https://uva.onlinejudge.org/external/6/p633.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA633/5f215fe5a4f86cde7f68132a46a120350c67e09a.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA633/38777f02a6ec6f612bff1fc60e25f679c65368fb.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA633/7236451152c7a1487c0fa9ee0b3ca74cab87fc56.png)