for p in range(int(input())): n,k=map(int,input().split()) if (n-1)%(k+1): print("Win") else: print("Lose")