import Control.Monad
import Data.List

main :: IO ()
main = do
  n <- readLn
  as <- sort <$> replicateM n ((\[a, b] -> (b, a)) . map (read :: String -> Int) . words <$> getLine)
  let x = scanl (\(_, b) (c, d) -> (c, b + d)) (head as) (tail as)
  let aa = filter (uncurry (<)) x
  putStrLn $
    if null aa
      then "Yes"
      else "No"




