#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 toBlow = 1; int highestHeight = height[0]; for (int i = 1; i < n; i++){ if (highestHeight < height[i]){ toBlow = 1; highestHeight = height[i]; } else if (highestHeight == height[i]){ toBlow++; } } printf("%d\n", toBlow); return 0; }