#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  long long int n, m = INT_MAX;
  cin >> n;
  vector<long long int> arr(n);
  for (long long int i = 0; i < n; i++) {
    cin >> arr[i];
    if (arr[i] == 0) {
      cout << "0";
      return 0;
    }
  }
  vector<pair<long long int, long long int>> idx(n);
  for (long long int i = 0; i < n; i++) {
    idx[i].first = arr[i];
    idx[i].second = i;
  }
  sort(idx.begin(), idx.end());
  for (auto i : idx) {
    auto val = i.first;
    auto ind = i.second;
    long long int dist = max(abs(ind), abs(n - ind - 1));
    long long int x = (double)val / dist;
    m = min(x, m);
  }
  cout << m;
  return 0;
}
