require 'pp'

n = gets.chomp!.to_i
a_n = []
n.times do |i|
    a = gets.chomp!.to_i
    a_n << a
end

# a_n
head = 0
while head < a_n.length
    i = head + 1
    while i < a_n.length
        if a_n[head] < a_n[i]
            a_n[i] = a_n[head]
            a_n.delete_at(head)
            head = 0
            break
        else
            i += 1
        end
    end

    head += 1
end

puts a_n.length
