UVA10536 Game of Euler

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=17&page=show_problem&problem=1477 [PDF](https://uva.onlinejudge.org/external/105/p10536.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10536/e116b64d00fcfaca300a8d96cbc4f12f35829b80.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10536/3ed3f5a06fdfae7f5d94bde1449f7716e1539db9.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10536/2c4322e4200c88f91e41805cb433e1b0d4ea90c9.png)