#define rep(i, n) for (int i = 0; i < (int)(n); i++) #define ALL(v) v.begin(), v.end() typedef long long ll; #include using namespace std; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); int n; cin>>n; vector A(n),B(n); rep(i,n) cin>>A[i]>>B[i]; vector> C(n); rep(i,n) C[i]={A[i]+B[i],i}; sort(ALL(C)); bool b=true; ll sum=0; rep(i,n){ int t=C[i].second; if(sum>B[t]) b=false; sum+=A[t]; } if(b) cout<<"Yes"<