#include <bits/stdc++.h>
using namespace std;
int a[111111];
int main() {
  int i, n, max = 0;
  long long re;
  long long sum = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] > max) max = a[i];
    sum += a[i];
  }
  n--;
  re = sum / n;
  if (sum % n > 0) re++;
  if (max > re) re = max;
  cout << re << endl;
  return 0;
}
