#include<stdio.h>
int main(void){
  char *s="python3 -c\""
"n,*t=map(int,open(0).read().split())\n"
"c=f=0\n"
"for b,a in sorted(zip(t[1::2],t[::2])):c+=a;f|=c>b\n"
"print('YNeos'[f::2])\n"
"\"";
  system(s);
  return 0;
}            