UVA11960 Divisor Game

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=229&page=show_problem&problem=3111 [PDF](https://uva.onlinejudge.org/external/119/p11960.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11960/8f048beee7f70b6943ded7248df3cb49dcf31fed.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11960/5ec6142af4d328da4a7db8aed4aa39056f2e11c7.png)

Output Format

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