import sequtils,strutils var n = stdin.readline.parseInt N,K : int for i in 1..n: (N,K) = stdin.readline.split.map(parseInt) if (N - 1) mod (K + 1) == 0: echo "Lose" else: echo "Win"