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