'use strict'
function main(input) {
    const tmp = input.split("\n");
    const N = parseInt(tmp[0], 10);
    let tasks = [];

    for (let i = 1; i <= N; i++) {
        let tmp2 = tmp[i].split(" ");
        let task = { A: parseInt(tmp2[0], 10), B: parseInt(tmp2[1], 10) };
        tasks.push(task);
    }

    tasks = tasks.sort((pair1, pair2) => pair1.B - pair2.B);

    let now = 0;
    let keepingDeadline = true;

    for (let task of tasks) {
        now += task.A

        if (now > task.B) {
            keepingDeadline = false;
            break;
        }

    }
    if (keepingDeadline) {
        console.log('Yes');
    } else {
        console.log('No');
    }
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));