#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k, ans, ma = 0, f = 0;
  long long sum = 0;
  vector<int> a;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> k;
    if (k > ma) ma = k;
    a.push_back(k);
    sum += k;
  }
  ans = sum / (n - 1);
  if (sum % (n - 1)) ans++;
  if (ans < ma) ans = ma;
  cout << ans;
}
