for _ in '1'*int(input()): N,K=map(int,input().split()) print(('Lose','Win')[(N-1)%(K+1)!=0])