UVA682 Whoever-pick-the-last-one-lose

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=8&page=show_problem&problem=623 [PDF](https://uva.onlinejudge.org/external/6/p682.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA682/3da97a453701a996cc0c9a237f48752d98ee1480.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA682/89698d68751bcbbbc03552aa85db211840a08d51.png)

Output Format

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