#include <bits/stdc++.h>
using namespace std;
long long int MAX(long long int a, long long int b) {
  if (a > b) return a;
  return b;
}
int main() {
  long long int n;
  long long int p = 0;
  cin >> n;
  int max = 0;
  for (long long int i = 1; i <= n; i++) {
    long long int now;
    cin >> now;
    if (now > max) max = now;
    p += now;
  }
  double it = 1.0 * p / (n - 1);
  if (it == p / (n - 1))
    printf("%I64d\n", MAX(p / (n - 1), max));
  else
    printf("%I64d\n", MAX(p / (n - 1) + 1, max));
}
