import java.util.Scanner
import kotlin.system.exitProcess

fun main(args: Array<String>) {
	val scanner = Scanner(System.`in`)
	val n = scanner.nextInt()
	val arr = Array(n){Pair(scanner.nextInt(), scanner.nextInt())}
	arr.sortBy{it.second}
	var t = 0
	arr.forEach {
		t += it.first
		if (t>it.second) {
			println("No")
			exitProcess(0)
		}
	}
	println("Yes")
}