import std.stdio, std.string, std.conv, std.range, std.algorithm;

void main() {
    int n = readln.chomp.to!int;
    long[] a = new long[n], b = new long[n];
    foreach (i; 0 .. n) {
        long[] tmp = readln.split.to!(long[]);
        a[i] = tmp[0], b[i] = tmp[1];
    }
    zip(b, a).sort!((t1, t2) => t1[0] < t2[0]);
    long t = 0;
    bool ok = true;
    foreach (i; 0 .. n) {
        if (t + a[i] <= b[i]) {
            t += a[i];
        } else {
            ok = false;
            break;
        }
    }
    writeln(ok ? "Yes" : "No");
}