#include <bits/stdc++.h>
using namespace std;
long long int a[100005];
int main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  ;
  long long int n, sum, mx = 0;
  sum = 0;
  cin >> n;
  for (long long int i = 0; i <= n - 1; i++) cin >> a[i];
  for (long long int i = 0; i <= n - 1; i++) {
    mx = max(mx, a[i]);
    sum += a[i];
  }
  cout << max((sum + n - 2) / (n - 1), mx) << endl;
  return 0;
}
