#include <bits/stdc++.h>
using namespace std;
int main(int argc, char** argv) {
  long long N;
  cin >> N;
  long long a[N];
  for (long long i = 0; i < N; i++) {
    cin >> a[i];
  }
  long long f_ans = LONG_LONG_MAX;
  for (long long i = 0; i < N; i++) {
    long long dist = (long long)max(i, (N - 1) - i);
    f_ans = min(a[i] / dist, f_ans);
  }
  cout << f_ans << '\n';
  return 0;
}
