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