# include <iostream>
# include <vector>
# include <limits>
# include <algorithm>
# include <map>
# include <string>
# include <functional>
int main() {
	int n;
	while (std::cin >> n&&n != 0) {
		std::vector<std::pair<int, int>> is;
		int a, b;
		for (int i = 0; i < n; i++) {
			std::cin >> a >> b;
			is.emplace_back(b, a);
		}
		std::sort(is.begin(), is.end());
		int tr = 0;
		for (int i = 0; i < n; i++) {
			tr += is[i].second;
			if (tr > is[i].first) {
				std::cout << "No" << std::endl;
				break;
			}
			if (i == n - 1) {
				std::cout << "Yes" << std::endl;
			}
		}
	}
}