#include <bits/stdc++.h>
using namespace std;
bool comp(int x, int y) { return (x > y); }
int n;
long long Sum = 0, Max = 0;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    Max = max(Max, (long long)x);
    Sum += x;
  }
  cout << max(Max, (long long)ceil(Sum / (n - 1 + 0.0)));
  return 0;
}
