"use strict";
    
const main = arg => {
    arg = arg.trim().split("\n");
    const N = parseInt(arg[0].split(" ")[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;
    
    for(let i in AB) {
        const A = AB[i][0];
        const B = AB[i][1];
        
        if(now + A > B) {
            console.log("No");
            return;
        }
        
        now += A;
    }
    
    console.log("Yes");
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));