#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, sum = 0, psum, rez = 0;
  cin >> n;
  long long L[n];
  for (int i = 0; i < n; ++i) {
    cin >> L[i];
    sum += L[i];
  }
  psum = sum / 2;
  sort(L, L + n);
  for (int i = n - 1; i >= 0; --i)
    if (rez + L[i] <= psum) rez += L[i];
  cout << sum - rez * 2 + 1;
}
