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