#include <bits/stdc++.h>
using namespace std;
const double g = 10.0, eps = 1e-9;
const int N = 100000 + 10, maxn = 10000 + 10, inf = 0x3f3f3f;
long long a[N];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long n, maxx = -1, sum = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
    maxx = max(maxx, a[i]);
  }
  long long ans = maxx;
  if (sum % (n - 1) == 0)
    cout << max(sum / (n - 1), maxx) << endl;
  else
    cout << max(sum / (n - 1) + 1, maxx) << endl;
  return 0;
}
