((input) => {
  const data = input.split('\n');
  const N = +data[0];
  const tasks = data.slice(1, N + 1).map((line) => {
    const d = line.split(' ');
    return [+d[0], +d[1]];
  });

  tasks.sort((a, b) => a[1] - b[1]);

  var count = 0;
  for (var task of tasks) {
    count += task[0];
    if (count > task[1]) {
      console.log('No');
      return;
    }
  }

  console.log('Yes');
})(require("fs").readFileSync("/dev/stdin", "utf8"));
