while true
	n=gets.to_i
	break if n == 0
	
	a=[]
	n.times{
		a.push gets.split(" ").map{|e|e.to_i}
	}
	flag = true
	a.permutation{|e|
		flag=true
		weight=0
		e.length.times{|i|
			weight+=e[i][0]
			if weight > e[i][1]
				flag = false
				break
			end
			break if flag && i == e.length
		}
		break if flag
	}
	puts "Yes" if flag
	puts "No" if !flag
end