ans=[] for i in range(0,int(input())): N,K=map(int,input().split()) ans.append("Lose" if (N-1)%(K+1)==0 else "Win") for v in ans: print(v)