#include <bits/stdc++.h>
using namespace std;
int n;
vector<int> a;
bool testar(long long val) {
  for (int i = 0; i < n; i++) {
    long long chk = val * max(i, n - i - 1);
    if (a[i] < chk) {
      return false;
    }
  }
  return true;
}
int main() {
  int ans = 1e9 + 500;
  cin >> n;
  a = vector<int>(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    ans = min(ans, a[i]);
  }
  long long lo = 0, hi = 1e9;
  while (lo <= hi) {
    long long mid = lo + (hi - lo) / 2;
    if (testar(mid) == true && testar(mid + 1) == false) {
      cout << mid << '\n';
      return 0;
    }
    if (testar(mid) == false) {
      hi = mid - 1;
    } else {
      lo = mid + 1;
    }
  }
  return 0;
}
