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