P=int(input()) for p in P: n,k=map(int,input().split()) if n%(k+1)==1: print("Lose") else: print("Win")