UVA10164 Number Game

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=13&page=show_problem&problem=1105 [PDF](https://uva.onlinejudge.org/external/101/p10164.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10164/fb404c3d474fff2d3af550c5d398216330d7a4a0.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10164/96eddab11269863a086091c423d67785801447c6.png)

Output Format

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