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