function main(input) {
  var inputList = input.split(/\n/).map(inp => inp.split(/\s/));
  const numOfN = formatNum(inputList[0]);
  inputList = inputList.slice(1, inputList.length);
  
  // sort
  inputList.sort((a, b) => {
    return formatNum(a[1]) - formatNum(b[1]);
  });
  var result = 'Yes';
  var count = 0;
  for (var i = 0; i < inputList.length; i++) {
    count += formatNum(inputList[i][0]);
    if (count > formatNum(inputList[i][1])) {
      result = 'No';
      break;
    }
  }
  console.log(result);
};

// 文字列を数値に変換
function formatNum(str) {
  return Number(str);
};

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