#include <bits/stdc++.h>
using namespace std;
const int N = 1000 * 100 + 5;
long long n, maxim, sum;
int main() {
  cin >> n;
  for (long long i = 0, tmp; i < n; i++)
    cin >> tmp, sum += tmp, maxim = max(maxim, tmp);
  cout << max(maxim, (sum + n - 2) / (n - 1)) << '\n';
}
