import Data.List
import Control.Monad

getLineN n = replicateM n getLine
toTuple [a,b] = (b,a)

main = do
    n <- readLn
    xs <- sort.map (toTuple.map read.words) <$> getLineN n
    putStrLn.judge.answer 0 $ xs

judge True = "Yes"
judge False = "No"

answer _ [] = True
answer time ((deadline,months):rest) = if now <= deadline then answer now rest else False where
    now = time+months