#include <bits/stdc++.h>
using namespace std;
int main(int argc, const char* argv[]) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  long long N, A, B, C;
  cin >> N >> A >> B >> C;
  vector<long long> l(N);
  for (unsigned int i = 0; i < N; i++) {
    cin >> l.at(i);
  }
  cout << l.at(0) << endl;
  return 0;
}
