#include #include #include #include #include using namespace std; int main() { int n; cin >> n; int max_height = 0; int count = 0; for(int i = 0; i < n; ++i) { int height; cin >> height; if(height > max_height) { max_height = height; count = 1; } else if(height == max_height) { ++count; } } cout << count; return 0; }