object Main extends App {
  	val sc = new java.util.Scanner(System.in)
	val pw = new java.io.PrintWriter(System.out)
 
	val ok = Seq.fill(sc.nextInt)((sc.nextInt, sc.nextInt)).sortBy(_._2).foldLeft(Some(0): Option[Int]) {
		case (Some(now), (a, b)) if (now + a <= b) => Some(now + a)
		case _ => None
	}.isDefined
 
	pw.println(if (ok) "Yes" else "No")
	pw.flush()
}