#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; bool compare(long int a, long int b) { return a>b; } int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n; cin>>n; long int height[n]; for(int i=0;i<n;i++) { cin>>height[i]; } sort(height,height+n,compare); long int maxi=height[0]; long int count=1; for(int i=1;i<n;i++) { if(maxi==height[i]) count++; else break; } cout<<count<<endl; return 0; }