function Main(input) {
    input = input.trim().split("\n");
    var tmp = input[0].split(" ");
    var N = parseInt(tmp[0], 10);
    var AB = [];
    for (var i = 1; i < N + 1; i++){
        tmp = input[i].split(" ");
        AB[i-1] = {A:parseInt(tmp[0],10),B:parseInt(tmp[1],10)}
    }
    AB.sort(function (a, b) {
        if (a.B < b.B) return -1;
        if (a.B > b.B) return 1;
        return 0;
    });
    var time = 0;
    var judge = "Yes";
    for (var i = 0; i < N; i++){
        time += AB[i].A;
        if (time > AB[i].B) {
            judge = "No";
            break;
        }
    }
    console.log(judge);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));