# Enter your code here. Read input from STDIN. Print output to STDOUT n = gets.strip.to_i candles = gets.split(" ") tallest = candles.max puts candles.count(tallest)