#include <bits/stdc++.h>
int main() {
  int n, max, sum, tre, hashi, i, x = 0;
  while (1) {
    scanf("%d", &n);
    if (n == 0) break;
    max = 0;
    sum = 0;
    x = 0;
    for (i = 0; i < n; i++) {
      scanf("%d%d", &tre, &hashi);
      sum += tre;
      if (max < hashi) max = hashi;
      if (hashi < tre) x = 1;
    }
    if (x == 1)
      printf("No\n");
    else if (sum <= max)
      printf("Yes\n");
    else
      printf("No\n");
  }
  return 0;
}
