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