program main
  implicit none
  integer(8) i, N, dead, ans, time
  integer(8),dimension(2,10**5) :: AB

  read(*, *) N

  AB = 10**5
  do i = 1,N
    read(*, *) AB(1,i), AB(2,i)
  end do

  dead = 0
  time = 0  
  ans = 0
  do
    dead = minval(AB(2,:))
    if (dead == 10**9+1) then
      exit
    else
      time = time + AB(1,minloc(AB(2,:)))
      AB(1,minloc(AB(2,:))) = 10**9+1
      if (time > dead) then
        ans = 1
      end if
    end if
  end do 
  if (ans == 1) then
    write(*, *) 'No'
  else
    write(*, *) 'Yes'
  end if
end program main
