#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int maxHeight = 0; int count = 0; int total; int temp; cin >> total; for (int i = 0; i < total; i++) { cin >> temp; if (temp > maxHeight) { maxHeight = temp; count = 1; } else if (temp == maxHeight) { count++; } } cout << count; return 0; }