for _ in[0]*int(input()): n,k=map(int,input().split()) print(['Win','Lose'][~-n%-~k==0])