#include #include using namespace std; int main(){ int n; int max_height = 0; int count_at_max_height = 0; cin >> n; vector height(n); for(int height_i = 0;height_i < n;height_i++){ cin >> height[height_i]; if (height[height_i] > max_height){ max_height = height[height_i]; count_at_max_height = 1; } else if (height[height_i] == max_height){ ++count_at_max_height; } } cout << count_at_max_height; return 0; }