#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  long long x, sum = 0, max1 = -1, fsum = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> x;
    sum += x;
    max1 = max(max1, x);
  }
  if (sum % (n - 1)) fsum = 1;
  fsum += sum / (n - 1);
  long long re = max(max1, fsum);
  cout << re << endl;
  return 0;
}
