UVA12217 Integer Game

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=244&page=show_problem&problem=3369 [PDF](https://uva.onlinejudge.org/external/122/p12217.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12217/46f43a9b8997ee018dd67495ac2e4214adf6cd95.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12217/74e03b1ec9fe79e7f2815d542a53448f30a656fe.png)

Output Format

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