"use strict";
    
const main = arg => {
    arg = arg.trim().split("\n");
    const N = parseInt(arg[0]);
    const AB = arg.slice(1, N + 1).map(n=>n.split(" ").map(l=>parseInt(l)));
    
    // 締め切り早い順に並べる
    AB.sort((a,b)=>a[1] - b[1]);
    
    let now = 0;
    let answer = "Yes";
    
    for(let i in AB) {
        let timeConsuming = AB[i][0];
        let deadLine = AB[i][1];

        if(now + timeConsuming > deadLine) {
            answer = "No";
            break;
        }
        
        now += timeConsuming;
    }
    
    console.log(answer);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));