#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < N; ++i) {
    cin >> a[i];
  }
  for (int i = 0; i < N; ++i) {
    a[i] = 0;
    vector<int>::iterator iter = std::max_element(a.begin(), a.end());
    size_t index = std::distance(a.begin(), iter);
    cout << "max element:" << *iter << endl;
  }
  return 0;
}
