#include <bits/stdc++.h>
using namespace std;
long long int n, a[300007];
int main() {
  scanf("%lld", &n);
  for (long long int i = 0; i < n; ++i) scanf("%lld", &a[i]);
  long long int cur = INT_MAX;
  for (long long int i = 0; i < n; ++i) {
    long long int as = a[i] / (long long int)max(i, n - i - 1);
    cur = (long long int)min(cur, as);
  }
  printf("%lld\n", cur);
  return 0;
}
