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