Олимпиадный тренинг

Задача 7151. Error


Known points (3or 0) received by a football team for a number of games in the order they were played. It is known that the team won at least one game and lost at least one game.
What happened before: the first win (3 points) or the first loss (0 points)?
The first line contains the number of games played by the team (not less than 2 and not more than 15).
The second line contains points for each game played.
If the win occurred earlier, then output the word WIN.
If the loss occurred earlier, then output the word LOSE.


 
Examples
# Input Output
1
4
1 0 1 3
LOSE