#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e9 + 7;
int main() {
  long long N;
  cin >> N;
  vector<long long> v(N + 9);
  for (long long i = 1; i <= N; i++) {
    cin >> v[i];
  }
  long long mn = INF;
  for (long long i = 2; i <= N; i++) {
    mn = min(min(v[1], v[i]) / (i - 1), mn);
  }
  long long mx = INF;
  for (long long i = N - 1; i >= 1; i--) {
    mx = min(min(v[i], v[N]) / (N - i), mx);
  }
  cout << min(mx, mn) << "\n";
  return 0;
}
