There's a stone game like that:
Player A and player B take the stones out of a package in turns. Each of them can take 1 or 3 or 7 or 8 stons in one turn. The one who takes the last stone will lose the game.
Now there's N stones, and Player A takes the stones first. You can consider that they are both clever enough, that is, they won't make any mistakes or foolish actions. And can you solve out that whether Player A can win the game?
For each case, you just output whether Player A will win the game. If Yes, you will output "WIN", or you will output "LOSE".