def f(n, k) n % (k + 1) != 1 end P = gets.to_i NK = P.times.map{gets.split.take(2).map(&:to_i)} NK.each{|n, k| puts f(n, k) ? :Win : :Lose }