#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 300;
long long int a[maxn];
long long int n, sum, maxi;
int main() {
  cin >> n;
  for (long long int i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
    maxi = max(maxi, a[i]);
  }
  cout << (long long)max((sum + n - 2) / (n - 1), maxi);
}
