let n = read_int ();;
let ab = Array.init n (fun _ -> Scanf.scanf " %d %d" (fun x y -> x, y));;
Array.sort (fun (a, b) (c, d) -> compare b d) ab;;
let ans = snd @@ Array.fold_left (fun (sum, all) (a, b) -> (sum + a, all && sum + a <= b)) (0, true) ab in
if ans then
  print_endline "Yes"
else
  print_endline "No";;
    
