#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, a[100005] = {0}, i;
  long long int sum = 0, ans, x;
  scanf("%I64d", &n);
  for (i = 0; i < n; i++) {
    scanf("%I64d", &a[i]);
    sum += a[i];
    x = (x > a[i] ? x : a[i]);
  }
  ans = sum / (n - 1);
  if (sum % (n - 1) != 0) ans++;
  printf("%I64d\n", (ans > x ? ans : x));
  return 0;
}
