loop do
  n = gets.to_i
  break if n == 0
  data = n.times.map{gets.split.map(&:to_i)}

  weight = 0
  check = data.sort_by{|a,b| b}.all? do |a,b|
    weight += a
    weight <= b
  end
  puts "Yes" if check
  puts "No" if not check
end