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