#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int x, all, n, s, i, j = -1;
  all = 0;
  cin >> n;
  for (i = 1; i <= n; i++) cin >> s, all += s, j = (j < s) ? s : j;
  n--;
  if (all / n < j)
    cout << j;
  else if (all % n)
    cout << (all / n) + 1;
  else
    cout << all / n;
  return 0;
}
