#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  long long int sum = 0;
  long long int maxi = INT_MIN;
  for (long long int i = 0; i < n; i++) {
    long long int x;
    cin >> x;
    sum += x;
    maxi = max(maxi, x);
  }
  if (maxi <= ceil(sum / (n - 1 * 1.0)))
    cout << (long long int)(ceil(sum / (n - 1 * 1.0))) << endl;
  else
    cout << (long long int)maxi << endl;
}
