#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int min_v = INT_MAX;
  for (int i = 1; i <= n; i++) {
    int v;
    cin >> v;
    min_v = min(min_v, v / (max(i - 1, n - i)));
  }
  cout << min_v << endl;
  cout << flush;
}
