def hantei(n, k) return (n - 1) % (k + 1) != 0 end p = gets.to_i p.times do if hantei(*gets.split.map(&:to_i)) puts "Win" else puts "Lose" end end