#include #include #include #include #include using namespace std; int main() { int n; int max = 0; int count = 0; cin >> n; vector heights(n); for (int i = 0; i> heights[i]; if (heights[i] > max) { max = heights[i]; } } for (int j = 0; j