The sequence is composed of natural numbers and concludes with the number . There are no more than numbers provided (not counting the terminating ). Your task is to find out how many elements in this sequence are equal to the largest element. Numbers that appear after the should not be considered.
A sequence of natural numbers that ends with the number .
Print the count of elements in the sequence that are equal to its largest element.
Example 1
Example 2