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