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