n = gets.chomp.to_i
p = gets.split.map(&:to_i)
max = 0
arr = Array.new(18, 0)
p.each do |ppp|
  arr[ppp-1] += 1
end

arr.each_with_index do |a, i|
  if a != 0
    max = i
  end
end

if arr[max] > 1
  puts "No"
  exit
end

slime = 1
(max-1).downto(1) do |num|
  if arr[num] > n * slime
    puts "No"
    exit
  end
  slime += 1
end
puts "Yes"