P=int(input()) X=[] for _ in range(P): N,K=map(int,input().split()) if (N-1)%(K+1): X.append("Win") else: X.append("Lose") print("\n".join(X))