import scala.io.StdIn._
object Main extends App {
  val n = readInt
  val abs = Array.fill(n)(readLine.split(" ").map(_.toInt)).sortBy(_(1))
  val result = abs.foldLeft(0){case (z, Array(a, b)) => if (z + a > b) 2000000001 else z + a}
  println(if (result == 2000000001) "No" else "Yes")
}