#include "bits/stdc++.h"
using namespace std;
using ll = long long;

int main() {
  cin.tie(0);
  cin.sync_with_stdio(0);

  int n;
  cin >> n;
  ll ans = 0;
  while(n--) {
  	int x;
  	cin >> x;
  	ans += x-1;
  }
  cout << x << flush;
}