#include <bits/stdc++.h>
using namespace std;
long long int arr[100005], dp[1000005], res[100005];
bool vis[100005];
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  long long int n, ans = 0, maxele = INT_MIN, sum = 0;
  cin >> n;
  for (long long int i = 0; i < n; i++) {
    cin >> arr[i];
    maxele = max(maxele, arr[i]);
    sum += arr[i];
  }
  n--;
  sum = sum / n + (sum % n ? 1 : 0);
  cout << max(maxele, sum);
  return 0;
}
