G. Scribble Roads
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Example
Input
2
2 0
5 3
1 2
1 3
2 3
Output
WIN
LOSE