#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
const int maxn = 3e5 + 10;
int n;
int x[maxn];
int f(int m) {
  int ans1 = x[m] / (m - 1);
  int ans2 = x[m] / (n - m);
  return min(ans1, ans2);
}
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) scanf("%lld", &x[i]);
  int ans = inf;
  ans = min(ans, min(x[1], x[n]) / (n - 1));
  for (int i = 2; i < n; i++) {
    ans = min(ans, f(i));
  }
  printf("%d\n", ans);
}
