
object Main{
	def main(args:Array[String]){
		val s = new java.util.Scanner(System.in)
		val n = s.nextInt
		val a = Array.fill(n)((s.nextLong,s.nextInt)).sortBy(_._2)
		//println(a.mkString(" "))
		val b = new Array[(Long,Int)](n)
		b(0) = a(0)
		for(i <- 1 until n) {
			b(i) = (b(i - 1)._1 + a(i)._1,a(i) _2)
		}
		//println(b.mkString(" "))
		println(if(b.exists(o => o._1 > o._2)) "No" else "Yes")
	}
}
