### main

loop do
  n = gets.to_i
  break if n == 0

  iss = n.times.map{gets.split.map(&:to_i)}.sort{|a, b| a[1] <=> b[1]}
  #p iss

  sum = 0
  ok = true

  for is in iss
    sum += is[0]
    if sum > is[1]
      ok = false
      break
    end
  end

  puts (ok ? 'Yes' : 'No')
end