function myout(text){console.log(text);}//standard output
function Main(input) {
	//input = parseInt(input);
	//input = input.trim().split(" ");
	input = input.trim().split("\n");
	//input = input.trim().split(" ").map((a)=>Number(a));
	//input = input.trim().split("\n").map((a)=>Number(a));
  var N = parseInt(input[0]);
  var ruiseki = 0;
  var list = [];
  for(var i = 1; i <= N; i++){
    var tmp = input[i].split(" ").map((a)=>Number(a));
    var obj = {};
    obj["taskTime"] = tmp[0];
    obj["limitTime"] = tmp[1];
    list.push(obj);
  }
  list.sort(function(a,b){
  	return a["limitTime"] - b["limitTime"];
  });
  for(var i = 0; i < list.length; i++){
    ruiseki += list[i]["taskTime"];
    if(list[i]["limitTime"] < ruiseki){
       myout("No");
      return;
    }
  }
  myout("Yes");
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());
