#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 5;
int a[maxn];
int main() {
  int n, i, maxn = 0;
  long long sum = 0;
  scanf("%d", &n);
  for (i = 0; i < n; ++i) {
    scanf("%d", a + i);
    sum += a[i];
    maxn = max(a[i], maxn);
  }
  long long ans = (sum + n - 2) / (n - 1);
  printf("%I64d\n", max(ans, 1LL * maxn));
  return 0;
}
