#include <bits/stdc++.h>
using namespace std;
int main(void) {
  long long int i, n, j, k, z, q, ans, count, ans1;
  cin >> n;
  int a[n];
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (i = 1; i < n; i++) {
    count = abs(i - 0);
    ans = min(a[i], a[0]);
    k = ans / count;
    ans1 = min(k, ans1);
  }
  for (i = n - 2; i >= 0; i--) {
    count = n - 1 - i;
    ans = min(a[i], a[n - 1]);
    k = ans / count;
    ans1 = min(k, ans1);
  }
  cout << ans1;
}
