#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int n, m, k, i, j, p, q, x, y, ans = 0, cnt = 0;
  string s;
  bool flag = false;
  cin >> n;
  long long int a[n];
  long long int mx = 0;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    cnt += a[i];
    mx = max(mx, a[i]);
  }
  long long int lo = mx;
  long long int hi = cnt;
  long long int mid;
  while (lo < hi) {
    mid = ((lo + hi) / 2);
    y = n * mid;
    if (y - cnt >= mid)
      hi = mid;
    else
      lo = mid + 1;
  }
  cout << lo << endl;
  return 0;
}
