import java.util.*

class Task(a: Int, b: Int) {
    val a = a
    val b = b
}

fun main(args: Array<String>){
	val cin = Scanner(System.`in`)
    val n = cin.nextInt()
    val tasks: MutableList<Task> = mutableListOf()
    for (i in 0..n-1) {
        tasks.add(Task(cin.nextInt(), cin.nextInt()))
    }
    val tasks_s = tasks.sortedBy{ it.b }
    var now: Long = 0
    var ok = true
    for (t in tasks_s) {
        now += t.a.toLong()
        if (now > t.b.toLong()) {
            ok = false
            break
        }
    }
    if (ok) {
        println("Yes")
    } else {
        println("No")
    }
}