#include <bits/stdc++.h>
using namespace std;
int main() {
  int K;
  cin >> K;
  for (int i = 0; i < K - 1; i++) {
    int tmp;
    cin >> tmp;
  }
  int result;
  cin >> result;
  cout << result << endl;
}
