(* O(n log n) *)
let n = Scanf.scanf " %d" @@ (+) 0
let bas = Array.init n @@ fun i -> Scanf.scanf " %d %d" @@ fun a b -> b, a
let _ =
  Array.sort compare bas;
  Array.fold_left (fun t (b, a) -> if a + t > b then (print_endline "No"; exit 0) else a + t) 0 bas |> ignore;
  print_endline "Yes"