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