p=int(input()) n=[0]*p k=[0]*p for i in range(p): n[i],k[i]=map(int,input().split()) for i in range(p): print("Win" if n[i]%(k[i]+1)!=1 else "Lose")