import std.stdio, std.string, std.conv, std.algorithm, std.range, std.array, std.typecons, std.math, std.numeric;

void main() {
    long n;
    readf("%d\n", &n);
    alias T = Tuple!(long, long);
    auto ts = new T[](n);
    foreach (i; 0..n) {
        long a, b;
        readf("%d %d\n", &a, &b);
        ts[i] = T(b, a);
    }
    ts = sort(ts).array;

    long cur = 0;
    foreach (t; ts) {
        cur += t[1];
        if (t[0] < cur) {
            writeln("No");
            return;
        }
    }
    writeln("Yes");


}
