For Loop. Typical tasks




Task
Time limit: 1000 ms,
Memory limit: 256 Mb

In 1995, Rowling finished her manuscript of the novel Harry Potter and the Sorcerer's Stone, which she was typing on an old typewriter. Following an enthusiastic recall by Bryony Evens, a reader who was asked to rate the first three chapters of the book, the Fulham-based firm of literary agents Christopher Little Literary Agents agreed to represent Rowling during the search for the publisher. The book was sent to twelve publishing houses, but they all rejected the manuscript. A year later, she finally got the green light (and £ 1,500 in advance) from editor Barry Cunningham of Bloomsbury, London.
Suppose that, in fact, J. Rowling, during a search for publishers, received N offers to print a novel. Help her assess how many publishers have offered her the maximum fee.

Input:
The first line sets the number - N.
The next N lines contain natural numbers (not more than 5000 each), one number per line.
Output:
Print one number - the number of publishers with the maximum fee.
 
Example
Input Output
1 4
1547
1600
1325
1600
2

Auto CHOOSE THE PROGRAMMING NECESSARY LANGUAGE!
Attach the program source file:
or enter the source code in the language:

Rules for designing programs and a list of errors during automatic task verification
           

Results: