import scala.io._ object Main { def main(args: Array[String]): Unit = { for (p <- 1 to readInt) { val Seq(n, k) = readLine().split(' ').map(_.toInt).toList val ans = if ((n - 1) % (k + 1) != 0) "Win" else "Lose" println(ans) } } }