#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d\n", &n);
  vector<int> integ(n, 0);
  for (int i = 0; i < n; ++i) {
    scanf("%d", &integ[i]);
  }
  int s = min(integ[0], integ[n - 1]) / (n - 1);
  for (int i = 1; i < n - 1; ++i) {
    s = min(s, min(integ[0], integ[i]) / i);
    s = min(s, min(integ[n - 1], integ[i]) / (n - 1 - i));
  }
  printf("%d\n", s);
}
