#include <bits/stdc++.h>
using namespace std;
long long int a[100005];
int main() {
  long long int n, i, s = 0, maxa = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] > maxa) maxa = a[i];
    s += a[i];
  }
  n--;
  cout << max(maxa, (s + n - 1) / n) << endl;
  return 0;
}
