#!/bin/python3 import sys n = int(input().strip()) height = [int(height_temp) for height_temp in input().strip().split(' ')] tallest=0 for h in height: if h > tallest: tallest = h count = 0 for h in height: if h == tallest: count+=1 print(count)