#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, m, ma = -1, ans = INT_MAX;
  cin >> n;
  int a[n + 1];
  for (int i = 1; i < n + 1; i++) {
    cin >> a[i];
    m = max(i - 1, n - i);
    ans = min(a[i] / m, ans);
  }
  cout << ans;
  return 0;
}
