#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n, max = -1; cin >> n; vector candle(n); for(int j = 0;j < n; j++){ int i, k; cin >> i; if(candle.size() <= i){ candle.resize(i+1,0); } candle[i]++; if(i > max)max = i; } cout << candle.at(max); return 0; }