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