module Main (main) where
import Control.Monad
import Data.List

main :: IO ()
main = do
  n <- read <$> getLine
  js <- replicateM n $ do
    a:b:_ <- map read . words <$> getLine
    return (b,a)
  putStrLn $ if solve js
             then "Yes"
             else "No"
  return ()

solve :: [(Int,Int)] -> Bool
solve xs = loop maxBound sortedByDeadline
  where
    sortedByDeadline :: [(Int,Int)]
    sortedByDeadline = sortBy (flip compare) xs
    loop :: Int -> [(Int,Int)] -> Bool
    loop deadline [] = deadline >= 0
    loop deadline ((d,t):xs) = loop (min d deadline - t) xs
