P =int(input()) rounds = [map(int, input().split()) for _ in range(P)] for n, k in rounds: if (n - 1) % (k + 1) == 0: print("Lose") else: print("Win")