#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i;
  long long a, sum, amax, x, y;
  while (~scanf("%d", &n)) {
    for (i = 0, sum = 0, amax = 0; i < n; i++) {
      scanf("%I64d", &a);
      sum += a;
      amax = amax > a ? amax : a;
    }
    x = sum / (n - 1);
    y = sum % (n - 1);
    if (y > 0) x += 1;
    if (x > amax)
      printf("%I64d\n", x);
    else
      printf("%I64d\n", amax);
  }
  return 0;
}
