#include <bits/stdc++.h>
using namespace std;
vector<int> a;
int ans = 1000000008;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int tmp;
    cin >> tmp;
    a.push_back(tmp);
  }
  for (int i = 0; i < n; i++) {
    int k = a[i] / max(i, n - i - 1);
    ans = min(ans, k);
  }
  cout << ans << endl;
}
