N = gets.to_i
As = gets.split.map(&:to_i)

ss = As.group_by(&:itself).map{|k, v| v.size}.sort.inject([0]){|a, n| a << a.last + n}.drop(1)
n = ss.size
(1 .. N).each do |k|
  if n < k
    puts 0
  else
    puts [N/k, ss[n - k]].min
  end
end