#include <bits/stdc++.h>
using namespace std;
long long max(long long a, long long b) { return a > b ? a : b; }
int main(void) {
  int n, i;
  long long tmp, sum = 0, m = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> tmp;
    sum += tmp;
    if (tmp > m) m = tmp;
  }
  cout << max(m, (sum + n - 2) / (n - 1)) << endl;
  return 0;
}
