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