#include <bits/stdc++.h>
using namespace std;
const long long maxn = 1e6, mod = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, sum = 0;
  cin >> n;
  long long x;
  long long nm = 0;
  for (long long i = 0; i < n; i++) {
    cin >> x;
    nm = max(nm, x);
    sum += x;
  }
  if (sum % (n - 1) == 0)
    sum = sum / (n - 1);
  else
    sum = sum / (n - 1) + 1;
  cout << max(sum, nm) << "\n";
  return 0;
}
