#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, i, j, s = 0, ans;
  cin >> n;
  long long int a[n];
  for (i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  for (i = 0; i < n; i++) s = s + (a[n - 1] - a[i]);
  s = a[n - 1] - s;
  if (s <= 0)
    cout << a[n - 1] << endl;
  else {
    ans = s / (n - 1);
    if (s % (n - 1)) ans++;
    cout << a[n - 1] + ans << endl;
  }
  return 0;
}
