#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ans = 10e9 + 1;
  int mini, pos;
  scanf("%d", &n);
  int a[n];
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  int k = 10e9 + 1;
  for (int i = 1; i < n + 1; i++) {
    int dif = max(n - i, abs(1 - i));
    k = a[i - 1] / dif;
    ans = min(ans, k);
  }
  if (ans <= 0)
    cout << 0;
  else
    cout << ans;
  return 0;
}
