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