#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n; cin >> n; int a[n]; int max = 0; int c = 0; for(int i = 0; i < n; i++){ cin >> a[i]; if(a[i]>max){ max = a[i]; } } for(int i = 0;i < n;i++){ if(max == a[i]){ c++; } } cout << c; return 0; }