#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, s = 0, x, m = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> x;
    s += x;
    m = max(m, x);
  }
  long long t = s / (n - 1);
  if (s % (n - 1)) t++;
  cout << max(m, t);
}
