fun main(args: Array) { (1..readLine()!!.toInt() ).map { readLine()!!.split(" ").map { x -> x.toInt() } }.map { x -> val (n, k) = x if( (n-1)%(k+1) == 0 ) println("Lose") else println("Win") } }