object Main extends App {
  val n = readInt
  val abs = 
  println(if(Range(0,n).map(_=>readLine.split(' ').map(_.toInt))
             .map(x=>(x(1),x(0)))
             .sorted
             .scanLeft((0,true))((acc,x)=>(acc._1+x._2, acc._1+x._2<=x._1))
             .foldLeft(true)(_&&_._2))
          "Yes" else "No")
}