#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const int MAXN = 200010;
inline int read() {
  char ch = getchar();
  int x = 0, f = 1;
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = (x << 1) + (x << 3) + (ch ^ 48);
    ch = getchar();
  }
  return x * f;
}
bool cmp(long long x, long long y) { return x > y; }
int main() {
  long long a, b, c[MAXN], ans;
  int n;
  while (cin >> n) {
    a = 0;
    b = 0;
    for (int i = 0; i < n; i++) {
      cin >> c[i];
    }
    sort(c, c + n, cmp);
    for (int i = 0; i < n; i++) {
      if (a <= b)
        a += c[i];
      else
        b += c[i];
    }
    ans = abs(a - b) + 1;
    cout << ans << endl;
  }
  return 0;
}
