#include <bits/stdc++.h>
using namespace std;
const int N = 100000;
int main(void) {
  long long int sum, Max, a[N], i, n, m;
  scanf("%lld", &n);
  Max = -1;
  sum = 0;
  for (i = 0; i < n; i++) {
    scanf("%lld", &a[i]);
    if (Max == -1 || a[i] > Max) {
      Max = a[i];
    }
    sum += a[i];
  }
  m = sum / (n - 1);
  if (m * (n - 1) < sum) {
    m++;
  }
  if (m < Max) {
    m = Max;
  }
  printf("%lld\n", m);
  return 0;
}
