#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ long long n,h,max,c; cin>>n; max=0; c=0; while(n--) { cin>>h; if(h==max) c++; if(h>max) { max=h; c=1; } } cout<