#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  long long s = 0;
  long long mx = (long long)-2e9;
  for (int i = 0, x; i < n; i++) cin >> x, s += x, mx = max(mx, x * 1LL);
  cout << max((s + n - 2) / (n - 1), mx) << endl;
  return 0;
}
