#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  vector<int> v(t);
  vector<int> a(t);
  int max = 0, index = 0;
  for (int i = 0; i < t; i++) {
    cin >> a[i];
    if (max < a[i]) {
      max = a[i];
      index = i;
    }
  }
  int sum = 0, k = 0;
  for (int i = 0; i < t; i++) {
  }
  cout << sum << endl;
  return 0;
}
