#include <bits/stdc++.h>
using namespace std;
int main() {
  long long num, tmp, sum, mx, l, r, mid;
  cin >> num;
  mx = sum = 0;
  for (int i = 0; i < num; i++) {
    cin >> tmp;
    sum += tmp;
    mx = max(mx, tmp);
  }
  l = mx;
  r = sum;
  while (l < r) {
    mid = (l + r) / 2;
    if (mid * num - sum >= mid)
      r = mid;
    else
      l = mid + 1;
  }
  cout << l;
  return 0;
}
