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