import java.util.Scanner object Problem008 { // 21 20 16 12 8 4 0 def proc(nk: Seq[(Int, Int)]): Seq[String] = { nk map { case (n: Int, k: Int) => if ((n - 1) % (k + 1) != 0) { "Win" } else { "Lose" } } } def main(args: Array[String]) { val sc = new Scanner(System.in) val n = sc.nextInt() val nk = Seq.fill(n)(sc.nextInt(), sc.nextInt()) val result = proc(nk) result.foreach(println) } }