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