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