Олимпиадный тренинг

Задача 2965. Processing of entered numbers - 3


Задача

Темы: Цикл for
Given a sequence of numbers. Find out how many times it contains the maximum number
 
Input data: First enter the number N - the number of members of the sequence, and then N numbers - the members of the sequence
Output: Print a single number - the number of times the maximum number occurs in the sequence.

Examples:
Input
7
1
4
2
5
2
5
3
 
Output
2