#include <bits/stdc++.h>
using namespace std;
long long a[1000000];
int main() {
  int n;
  cin >> n;
  long long mx = 0, sm = 0;
  for (int i = 0; i < n; ++i) {
    scanf("%I64d", &a[i]);
    mx = max(mx, a[i]);
    sm += a[i];
  }
  cout << max(mx, (sm + n - 2) / (n - 1));
}
