#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, mid, mx = -INT_MAX, sum = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> mid, mx = max(mx, mid), sum += mid;
  cout << max((sum - 1) / (n - 1) + 1, mx) << endl;
}
