"use strict";

function Main(input) {
  input = input.split("\n");
  var N = parseInt(input[0].split(" ")[0], 10);
  var works = [];

  for (var i = 1; i <= N; i++) {
    var work = input[i].split(" ");
    works.push([parseInt(work[0]), parseInt(work[1])]);
  }

  works.sort(function (a, b) {
    return a[1] - b[1];
  }); //console.log(works);

  var t = 0;

  for (var _i = 0; _i < works.length; _i++) {
    var w = works[_i];
    t += w[0];

    if (t > w[1]) {
      console.log("No");
      return;
    }
  }

  console.log("Yes");
}

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