#include <bits/stdc++.h>
#pragma warning(disable : 4996)
using namespace std;
long long arr[100003];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> arr[i];
  sort(arr, arr + n);
  reverse(arr, arr + n);
  long long a = 0, b = 0;
  for (int i = 0; i < n; i++) {
    if (a <= b)
      a += arr[i];
    else {
      b += arr[i];
    }
  }
  cout << abs(a - b) + 1;
  return 0;
}
