#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, sum = 0, maxi = -1e+9;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    long long x;
    cin >> x;
    sum += x;
    maxi = max(maxi, x);
  }
  cout << max(maxi, (long long)ceil((double)sum / (n - 1)));
  return 0;
}
