#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 20;
long long a[N];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, sum = 0, mx = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    mx = max(mx, a[i]);
    sum += a[i];
  }
  cout << max((long long)((sum + n - 2) / (n - 1)), mx) << '\n';
  return 0;
}
