#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int k, i, sum = 0, maxx = -1, n;
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> k;
    sum += k;
    maxx = max(maxx, k);
  }
  cout << max(maxx, (sum - 1) / (n - 1) + 1) << endl;
}
