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