#include <bits/stdc++.h>
using namespace std;
int main() {
  int n = 0, a = 0, b = 0, c = 0, d = 0, e = 0;
  cin >> n;
  cin >> a >> b >> c >> d >> e;
  if (n == 1) {
    cin >> a;
    cout << a + b + c + d + e << endl;
  } else if (n == 3) {
    cin >> a >> b >> c;
    cout << (a + b + c + d + e) / 3 << endl;
  } else if (n == 5) {
    cin >> a >> b >> c >> d >> e;
    cout << (a + b + c + d + e) / 5 << endl;
  }
  return 0;
}
