print_endline @@
  Scanf.scanf "%d" @@ fun n ->
  let a = Array.init n (fun _ -> Scanf.scanf " %d" ((+) 0)) in
  Array.sort (-) a;
  let l, r = a.(0), a.(n-1) in
  if r-l >= 2 then "No" else
  if l = r then
    if n = l + 1 || n >= 2 * l then "Yes" else "No"
  else
  (* l+1 = r *)
  let lc = Array.fold_left (fun s x -> s + a.(n-1) - x) 0 a in
  let rc = n - lc in
  if lc < l && rc >= 2 * (r-lc) then "Yes" else "No"