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