type GameParams = { N: int; K: int } type Player = Black | White let simulate n k = (n - 1) % (k + 1) |> function | 0 -> White | _ -> Black let N = stdin.ReadLine() |> int Array.init N (fun _ -> let t = stdin.ReadLine().Split() |> Array.map int { N = t.[0]; K = t.[1] }) |> Array.map (fun x -> simulate x.N x.K) |> Array.map (function | Black -> "Win" | _ -> "Lose") |> Array.iter stdout.WriteLine