import kotlin.comparisons.compareBy

fun main(args: Array<String>) {
    val lines: List<List<Int>> =
            System.`in`.bufferedReader()
                .readLines()
                .map { it.split(" ").map { it.toInt() } }
    val sorted = lines.drop(1)
                .sortedWith(compareBy({ it[1] }))
    var current: Long = 0
    for (task in sorted) {
        current += task[0]
        if (current > task[1]) {
            print("No")
            return
        }
    }
    print("Yes")
}
