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