#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i;
  long long a, ans, sum = 0, mx = -1;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a;
    sum += a;
    mx = ((mx >= a) ? (mx) : (a));
  }
  if ((sum % (n - 1)) == 0)
    ans = sum / (n - 1);
  else
    ans = (sum / (n - 1) + 1);
  if (ans < mx) ans = mx;
  cout << ans << endl;
  return 0;
}
