UVA10620 A Flea on a Chessboard

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=18&page=show_problem&problem=1561 [PDF](https://uva.onlinejudge.org/external/106/p10620.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10620/17f15426215be700461ed33118cfdd980030a9e1.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10620/ba123673a2ed72af5a8e7b743a7a166016929b34.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10620/c78694ae3fa5c02059f0a98d538119ee2ef64ac8.png)