#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  set<int> indices;
  for (int i = 0; i < n; i++) {
    indices.insert(i);
  }
  vector<pair<int, int> > arr(n);
  for (int i = 0; i < n; i++) {
    cin >> arr[i].first;
    arr[i].second = i;
  }
  sort(arr.begin(), arr.end());
  int k = INT_MAX;
  for (int i = 0; i < arr.size() - 1; i++) {
    int val = arr[i].first;
    int index = arr[i].second;
    indices.erase(index);
    int start = *indices.begin();
    int endi = *indices.rbegin();
    int diff1 = abs(index - start);
    int diff2 = abs(index - endi);
    int tk1 = val / diff1;
    int tk2 = val / diff2;
    k = min(k, tk1);
    k = min(k, tk2);
  }
  cout << k << endl;
  return 0;
}
