#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll mod = 1e9 + 7;
int run_test() {
  ll n;
  cin >> n;
  vector<ll> v(n);
  ll maxi = 0;
  ll sum = 0;
  for (int i = 0; i < n; i++) {
    cin >> v[i];
    maxi = max(maxi, v[i]);
    sum += v[i];
  }
  cout << max(maxi, (sum + n - 2) / (n - 1)) << "\n";
  return 0;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int tt;
  tt = 1;
  while (tt--) {
    run_test();
  }
}
