#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  int a[n + 2];
  long long int i, j;
  long long int sum = 0;
  long long int ans = INT_MIN;
  for (i = 1; i <= n; i++) {
    cin >> a[i];
    sum = sum + a[i];
    long long int c = a[i];
    ans = max(ans, c);
  }
  double m = n - 1;
  double z = sum / m;
  long long int q = ceil(z);
  cout << max(ans, q);
}
