#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  long long t, i;
  cin >> t;
  long long A[t], m = -1, s = 0, a;
  for (i = 0; i < t; i++) {
    cin >> A[i];
    s += A[i];
    m = m < A[i] ? A[i] : m;
  }
  a = (s % (t - 1)) ? (s / (t - 1) + 1) : (s / (t - 1));
  if (m > a)
    cout << m;
  else
    cout << a;
  return 0;
}
