let n = stdin.ReadLine() |> int
let ab = [| for i in 1..n -> stdin.ReadLine().Split() |> Array.map int |]

let _,doesSuccess = 
    ab 
    |> Array.sortBy(fun [| _; y; |] -> y) 
    |> Array.fold 
        (fun (xTotal,doesSuccess) [| x; y; |] ->
            let xTotal = xTotal + x
            xTotal, doesSuccess && (y - (xTotal)) >= 0 )
        (0, true)

match doesSuccess with
| true -> "Yes"
| false -> "No"
|> stdout.WriteLine 
