#include <bits/stdc++.h>
using namespace std;
const int maxn = 3e5 + 5;
int n;
int a[maxn];
int solve() {
  int res = 1e9 + 5;
  for (int i = 0; i < n; i++) {
    int t1 = i, t2 = n - 1 - i;
    if (t1) res = min(res, a[i] / t1);
    if (t2) res = min(res, a[i] / t2);
  }
  return res;
}
int main() {
  ios::sync_with_stdio(false);
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  cout << solve();
}
