#include <bits/stdc++.h>
using namespace std;
int a[300005];
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  int k = 1e9;
  for (int i = 2; i < n; i++) {
    k = min(k, min(a[1], a[i]) / (i - 1));
    k = min(k, min(a[n], a[i]) / (n - i));
  }
  k = min(k, min(a[1], a[n]) / (n - 1));
  cout << k << endl;
}
