P=gets.to_i P.times do N,K= gets.split.map(&:to_i) if (N-1) % (K+1) == 0 puts "Lose" else puts "Win" end end