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