#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  long long r, n;
  cin >> n;
  long long mx = 0, sum = 0;
  for (int i = 0; i < n; i++) cin >> r, sum += r, mx = max(mx, r);
  cout << max(mx, (long long)ceil((double)sum / (double)(n - 1)));
  return 0;
}
