#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
long long n, a[100010];
int main() {
  long long n, mx = 0, sum = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] > mx) mx = a[i];
    sum += a[i];
  }
  long long s = (sum + n - 2) / (n - 1);
  if (mx > s) s = mx;
  cout << s << "\n";
  return 0;
}
