#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  vector<int> data(n + 1);
  int ans = 1e9;
  for (int i = 1; i <= n; i++) {
    cin >> data[i];
    ans = min(ans, data[i] / max(i - 1, n - i));
  }
  cout << ans << endl;
}
int main() {
  cin.sync_with_stdio(0);
  cin.tie(0);
  solve();
}
