import Control.Monad
import Data.Maybe
import qualified Data.ByteString.Char8 as BS
import Data.List

readInt = fst . fromJust . BS.readInt
readIntList = map readInt . BS.words
getInt = readInt <$> BS.getLine
getIntList = readIntList <$> BS.getLine

main = do
    n <- getInt
    abs <- sort . map (\(a : b : _) -> (b, a)) <$> replicateM n getIntList
    putStrLn $ if fst (foldl task (True, 0) abs) then "Yes" else "No"

task (tf, sa) (b, a) = (tf', sa')
    where sa' = sa + a
          tf' = tf && sa' <= b