#include <bits/stdc++.h>
using namespace std;
int main() {
  long long i, k, n, a[300002], m = 1000000001;
  cin >> n;
  for (i = 0; i < n; ++i) {
    cin >> a[i];
  }
  for (i = 0; i < n; ++i) {
    if (i < n / 2)
      k = min(a[i], a[n - 1]) / (n - i - 1);
    else
      k = min(a[i], a[0]) / i;
    if (k < m) m = k;
  }
  cout << m;
}
