{-# LANGUAGE BangPatterns #-}
import Control.Arrow
import Control.Monad.Fix
import Data.Char
import Data.Int
import Data.Foldable
import Data.List
import qualified Data.Vector as V
import qualified Data.Vector.Unboxed as VU
import qualified Data.ByteString.Char8 as B
import Debug.Trace

solve :: Int -> VU.Vector (Int, Int) -> Bool
solve !n !abn = snd $ foldr
  ( \(!a, !b) (!acc, !r) ->
    if r then let acc' = acc + a in (acc', acc' <= b) else (acc, r)
  )
  (0, True)
  abn'
  where abn' = sortBy (\(x, y) (x1, y1) -> compare y1 y) $ VU.toList abn

main = do
  let readInt :: Integral a => B.ByteString -> Maybe (a, B.ByteString)
      readInt = fmap (first fromIntegral . second B.tail) . B.readInt

  n   <- (\vec -> (vec VU.! 0)) . VU.unfoldrN 1 readInt <$> B.getLine
  abn <-
    VU.replicateM n
    $   (\vec -> (vec VU.! 0, vec VU.! 1))
    .   VU.unfoldrN 2 readInt
    <$> B.getLine
  putStrLn $ if solve n abn then "Yes" else "No"
