import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) p = int(readline()) for _ in range(p): n, k = map(int, readline().split()) if (n - 1) % (k + 1) == 0: ans = 'Lose' else: ans = 'Win' print(ans)