for i in range(int(input())): N, K = map(int, input().split()) if (N - 1) % (K + 1) == 0: print("Lose") else: print("Win")