#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
long long n, a[N], sum, mx, ans;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
    if (a[i] > mx) mx = a[i];
  }
  cout << max(mx, (long long)ceil((double)sum / (double)(n - 1)));
  return 0;
}
