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