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