#include <bits/stdc++.h>
using namespace std;
pair<int, int> island[26];
int n, sum;
bool check(int visit, int w) {
  if (w == sum) return true;
  int res = visit;
  bool alt = false;
  for (int i = 0; i < n; i++) {
    visit = res;
    if (visit & (1 << (i + 1))) continue;
    visit |= (1 << (i + 1));
    if (island[i + 1].second < w + island[i + 1].first) continue;
    alt |= check(visit, w + island[i + 1].first);
  }
  return alt;
}
int main() {
  while (cin >> n, n) {
    sum = 0;
    for (int i = 0; i < n + 1; i++) island[i] = pair<int, int>(0, 0);
    for (int i = 0; i < n; i++) {
      cin >> island[i + 1].first >> island[i + 1].second;
      sum += island[i + 1].first;
    }
    cout << ((check(0, 0)) ? "Yes" : "No") << endl;
  }
  return 0;
}
