defmodule Main do def main do p = IO.read(:line) |> String.trim() |> String.to_integer() for _ <- 1..p do IO.read(:line) |> String.trim() |> String.split(" ") |> Enum.map(&String.to_integer/1) |> solve() |> if(do: "Win", else: "Lose") |> IO.puts() end end def solve([n, k]), do: Integer.mod(n - 1, k + 1) != 0 end