← Problem book: Python Lesson 61 of 96 · 15 XP

How many maximums

Theory and problem statement

Machine translation, not yet reviewed by a native speaker.

The first line contains the count of numbers n (n ≥ 1), the second — the n integers themselves, separated by spaces.

Print how many times the largest number occurs in the sequence.

Example

Input:

6
1 5 2 5 5 3

Output:

3

Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.