Balls
题号:NC207631
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

Lyx is the most handsome boy in HNU, he has n(0<n<1e6) small balls, each ball has a label (0<=<=100), lyx want to know how many balls with the largest label.

输入描述:

There are 2 lines. The first line is n, the length of the array, the second line has n integers, ai, represent the label of each ball.

输出描述:

output 1 integer, the number of the ball with the largest label.
示例1

输入

复制
4
1 8 8 4

输出

复制
2
示例2

输入

复制
5
5 4 4 3 2

输出

复制
1