import scala.util.control.Breaks
object main extends App {
    val n = io.StdIn.readInt()
    val sc = new java.util.Scanner(System.in)
    val list = List.fill(n,2)(sc.nextInt)

    var time = 0
    var ans = 0
    val b = new Breaks

    b.breakable{
    for(i <- 0 until n){
        time += list.apply(i).apply(0)
        if(time <= list.apply(i).apply(1))
            ans = 0
        else { ans = 1
            b.break}
    }
    }
    if(ans == 0)
        println("Yes")
    else
        println("No")
}