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