#include <bits/stdc++.h>
using namespace std;
int main(void) {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  long long all = 0;
  long long ans = 0;
  for (long long i = 0; i < n; i++) {
    long long x;
    cin >> x;
    ans = max(ans, x);
    all += x;
  }
  n = n - 1;
  long long round = 0;
  while (true) {
    if (all > 0) {
      round++;
      all -= n;
    } else
      break;
  }
  cout << max(round, ans) << '\n';
  return (0);
}
