#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> #include <map> using namespace std; long long n,x,t,i; map <long long,long long> mp; map <long long,long long>::iterator it; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ cin>>n; while(n--) { cin>>x; if(mp.count(x)==0) { mp[x]=1; } else { mp[x]++; } } it=mp.end(); it--; cout<<it->second; return 0; }