#include #include #include #include #include #include #include int main(){ int n; scanf("%d",&n); int *height = malloc(sizeof(int) * n); for(int height_i = 0; height_i < n; height_i++){ scanf("%d",&height[height_i]); } int ans = 0; int prev_max_height = 0; for(int i = 0; i < n; i++){ if(height[i] > prev_max_height){ prev_max_height = height[i]; } } for(int i = 0; i < n; i++){ if(height[i] == prev_max_height){ ans++; } } printf("%d", ans); return 0; }