p = int(input()) for i in range(p): n, k = [int(x) for x in input().split()] if (n - 1) % (k + 1) == 0: res = 'Lose' else: res = 'Win' print(res)