#include <bits/stdc++.h>
using namespace std;
int mi = 10e9;
const int MMAX = 0x7fffffff;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int x[n + 1];
  int mi = MMAX;
  int pos;
  for (int q = 1; q <= n; q++) {
    cin >> x[q];
    if (x[q] < mi) {
      mi = x[q];
      pos = q;
    }
  }
  int dis = max(pos - 1, n - pos);
  int cof = 0;
  while (true) {
    if ((cof + 1) * dis <= mi)
      cof++;
    else {
      break;
    }
  }
  for (int q = 1; q <= n; q++) {
    dis = max(q - 1, n - q);
    if (cof * dis <= x[q])
      continue;
    else {
      q--;
      cof--;
    }
  }
  cout << cof;
  return 0;
}
