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