#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int a[30];
  int b[30];
  int sum = 0;
  while (cin >> n) {
    if (n == 0) return 0;
    for (int i = 0; i < n; i++) {
      cin >> a[i] >> b[i];
      sum += a[i];
    }
    int MAXb = 0;
    int MAXbi = 0;
    while (true) {
      for (int i = 0; i < n; i++) {
        if (MAXb < b[i]) {
          MAXbi = i;
          MAXb = b[i];
        }
      }
      if (MAXb >= sum) {
        b[MAXbi] = 0;
        sum -= a[MAXbi];
      } else {
        cout << "No" << endl;
        break;
      }
      if (sum == 0) {
        cout << "Yes" << endl;
        break;
      }
    }
  }
  return 0;
}
