#include <bits/stdc++.h>
using namespace std;
template <class T>
void pv(T a, T b) {
  for (T i = a; i != b; ++i) cout << *i << " ";
  cout << endl;
}
template <class T>
void chmin(T &t, T f) {
  if (t > f) t = f;
}
template <class T>
void chmax(T &t, T f) {
  if (t < f) t = f;
}
int in() {
  int x;
  scanf("%d", &x);
  return x;
}
int j[30];
int b[30];
int main() {
  int n;
  while (n = in()) {
    int i;
    for (i = 0; i < n; i++) {
      cin >> j[i] >> b[i];
    }
    int bit = 0, sum = 0;
    for (i = 0; i < n; i++) {
      sum += j[i];
    }
    for (i = 0; i < n; i++) {
      b[i] -= sum;
    }
    bool update;
    while (bit != (1 << n) - 1) {
      update = false;
      for (i = 0; i < n; i++) {
        if (b[i] >= 0) {
          bit |= 1 << i;
          int k;
          for (k = 0; k < n; k++) {
            b[k] += j[i];
          }
          update = true;
        }
      }
      if (!update) break;
    }
    cout << (update ? "Yes" : "No") << endl;
  }
  return 0;
}
