import std.stdio;
import std.algorithm;
import std.math;
import std.conv;
import std.string;

T readNum(T)(){
  return readStr.to!T;
}

T[] readNums(T)(){
  return readStr.split.to!(T[]);
}

string readStr(){
  return readln.chomp;
}

void main(){
  int n = readNum!int;
  auto work = new long[][](n, 2);

  foreach(ref e; work){
    e = readNums!long;
  }

  work.sort!("a[1] < b[1]");

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

  writeln("Yes");
}
