Module: (C++) For loop operator. Typical tasks


Problem

12 /16


Harry Potter: how it all began

Problem

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