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

void scan(T...)(ref T a) {
    string[] ss = readln.split;
    foreach (i, t; T) a[i] = ss[i].to!t;
}
T read(T)() { return readln.chomp.to!T; }
T[] reads(T)() { return readln.split.to!(T[]); }
alias readint = read!int;
alias readints = reads!int;

bool calc(long[][] a) {
    a.sort!"a[1] < b[1]";

    long t = 0;
    foreach (e; a) {
        t += e[0];
        if (t > e[1]) return false;
    }
    return true;
}

void main() {
    int n = readint;
    long[][] a;
    for (int i = 0; i < n; i++) {
        a ~= reads!long;
    }
    writeln(calc(a) ? "Yes" : "No");
}
