#include <bits/stdc++.h>
using namespace std;
long long int n, x, sum = 0, z = LONG_MIN;
int main() {
  ios_base::sync_with_stdio(0);
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  cin >> n;
  for (int i = 1; i <= n; ++i) cin >> x, sum += x, (x > z) ? z = x : x = 0;
  if (z >= ((sum + (n - 2)) / (n - 1)))
    cout << z << "\n";
  else
    cout << (sum + (n - 2)) / (n - 1) << "\n";
  return 0;
}
