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