#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  for (long long i = 0; i < n; i++) cin >> a[i];
  int ans = 1e9;
  for (long long i = 0; i < n; i++) {
    int j = max(n - i - 1, i);
    int k;
    if (i - j < 0)
      k = min(a[n - 1], a[i]);
    else
      k = min(a[0], a[j]);
    int cans = k / j;
    ans = min(ans, cans);
  }
  cout << ans;
}
