#include <bits/stdc++.h>
int main() {
  long long n;
  std::cin >> n;
  std::vector<long long> a(n, 0);
  long long sum = 0, max = 0;
  for (int i = 0; i < n; ++i) {
    std::cin >> a[i];
    sum += a[i];
    if (a[i] > max) {
      max = a[i];
    }
  }
  long long ans = std::ceil(1. * (sum) / (n - 1));
  std::cout << std::max(ans, max) << std::endl;
  return 0;
}
