e-olymp
Competitions

Quick Start C: Loops, Arrays, Functions

Number of maximums

Array of n integers is given. Find the number of maximum elements.

Input

First line contains the number n (n100). Next line contains n integers, each does not exceed 100 by absolute value.

Output

Print the number of maximum elements.

Time limit 1 second
Memory limit 128 MiB
Input example #1
5
1 6 2 6 2
Output example #1
2