n=int(input()) for i in range(n): n,k=map(int,input().split()) print(["Win","Lose"][n %(k+1)==1])