#Q244. 「一本通 6.7 例 2」取石子游戏 2
「一本通 6.7 例 2」取石子游戏 2
Description
There is an interesting game played as follows:
Players: ;
Props: piles of stones, with the number of stones in each pile being ;
Rules:
- The two players take turns to remove stones;
- On each turn, a player selects one pile and removes any number of stones from it (at least );
- The game ends when all stones have been removed;
- If a player has no stones to remove when it's their turn, they lose.
Assuming both players are very smart, who will win and who will lose?
Input Format
The first line contains an integer ;
The second line contains integers separated by spaces, representing the number of stones in each pile.
Output Format
Output only one line, an integer. If the first player wins, output win; if the second player wins, output lose.
Sample 1
4
7 12 9 15
win
Data Range and Hint
For all data, .