#include <bits/stdc++.h>
using namespace std;
int main() {
  long long answer = 0;
  long long input = 0;
  long long minput = 0;
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> input;
    answer += input;
    minput = max(minput, input);
  }
  answer += (n - 2);
  answer /= (n - 1);
  if (answer > minput)
    cout << answer << '\n';
  else
    cout << minput << '\n';
  return 0;
}
