#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  long long sum = n - 2, x, ub = 0;
  for (int i = 0; i < n; i++) {
    scanf("%I64d", &x);
    ub = max(ub, x);
    sum += x;
  }
  printf("%I64d\n", max(sum / (n - 1), ub));
  return 0;
}
