#include <bits/stdc++.h>
using namespace std;
signed main(void) {
  long long n;
  cin >> n;
  long long arr[n + 2];
  long long sum = 0;
  long long div1 = n - 1;
  long long maxval = 0;
  for (long long i = 0; i < n; i++) {
    cin >> arr[i];
    sum += arr[i];
    maxval = max(maxval, arr[i]);
  }
  long long ans = 0;
  if (sum % div1 == 0) {
    ans = sum / div1;
  } else {
    ans = sum / div1 + 1;
  }
  cout << max(maxval, ans) << endl;
}
