#include using namespace std; int main() { int n; cin >> n; int count= 0; int highest= 0; for (int i= 0; i < n; ++i) { int candle; cin >> candle; if (candle > highest) { count= 1; highest= candle; } else if (candle == highest) { count++; } } cout << count << endl; /* Enter your code here. Read input from STDIN. Print output to STDOUT */ return 0; }