import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop, core.stdc.string;

void main() {
    auto N = readln.chomp.to!int;
    auto A = iota(N).map!(_ => readln.split.map!(to!long).array).array;
    A.sort!"a[1] < b[1]";

    long t = 0;
    foreach (a; A) {
        if (t + a[0] > a[1]) {
            writeln("No");
            return;
        }
        t += a[0];
    }

    writeln("Yes");
}