#include #include #include using namespace std; int main() { int candles; cin >> candles; int height; int MaxH = 0; vector h; int counter = 0; for(int i = 0;i < candles;i++) { cin >> height; MaxH = max(MaxH,height); h.push_back(height); } for(int i = 0;i < h.size();i++) { if(MaxH == h[i]) counter++; } cout << counter; return 0; }