function Main(input) {
    ans = 0
    lines = input.split("\n")
    N = lines.shift() * 1
    tasks = []
    for (i =0; i<=N; i++) {
       tasks.push(lines[i].split(" "))
    }
    tasks = tasks.sort(function(a, b) {
        return b[1] * 1 - a[1] * 1
    })
    bool = true
    for (i =0; i<N; i++) {
        t = 0
        for (j=i; j<N; j++) {
            t += tasks[j][0] * 1
            if (t > tasks[i][1] * 1) {
                bool = false
                break;
            }
        }
    }
    ans = bool ? 'Yes' : 'No';
    console.log(ans)
    return ans
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));