#include <bits/stdc++.h>
using namespace std;
using pii = pair<int, int>;
using lint = long long;
using pll = pair<lint, lint>;
const int MOD = 1e9 + 7, INF = 987654321;
const lint LINF = 987654321987654321;
const int dr[] = {-1, 0, 1, 0};
const int dc[] = {0, -1, 0, 1};
const int mxn = 303030;
int tc, cnt;
int n;
pll arr[mxn];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> arr[i].first;
    arr[i].second = i;
  }
  sort(arr, arr + n, greater<pll>());
  lint lo, hi, k = 2 * INF;
  lo = hi = arr[0].second;
  for (int i = 1; i < n; i++) {
    k = min(k, min(arr[i].first / abs(arr[i].second - hi),
                   arr[i].first / abs(arr[i].second - lo)));
    lo = min(lo, arr[i].second);
    hi = max(hi, arr[i].second);
  }
  cout << k;
  return 0;
}
