#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int n;
  long long sum = 0, mx = 0;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    long long t;
    cin >> t;
    sum += t;
    mx = max(mx, t);
  }
  cout << max(mx, sum / (n - 1) + (sum % (n - 1) != 0)) << endl;
  return 0;
}
