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