import sys N=[] K=[] P=int(input()) for i in range(P): str=input().split() N.append(int(str[0])) K.append(int(str[1])) for i in range(P): if ((N[i]-1)%(K[i]+1)) != 0: print("Win") else: print("Lose")