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