#include <bits/stdc++.h>
int main() {
  int n, i, m = 0, temp;
  long long sum = 0;
  for (scanf("%d", &n), i = 0; i < n; ++i) {
    scanf("%d", &temp);
    sum += (long long)temp;
    m = ((temp) > (m) ? (temp) : (m));
  }
  printf("%I64d\n", (((sum + n - 2) / (long long)(n - 1)) > (m)
                         ? ((sum + n - 2) / (long long)(n - 1))
                         : (m)));
  return 0;
}
