P=int(input()) for i in range(P): n,k=map(int,input().split()) if n%(k+1)!=1: print("Win") else: print("Lose")