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