#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, i = 0, j, k = 0, l = 0, m = 10e9, a = 0, b = 0, c, sum = 0,
               x = 0, y = 0, z = 0;
  cin >> n;
  long long arr[n + 1];
  for (i = 1; i <= n; i++) {
    cin >> arr[i];
    arr[i] = arr[i] / max(i - 1, n - i);
  }
  for (i = 1; i <= n; i++) {
    l = arr[i];
    m = min(m, l);
  }
  cout << m;
  return 0;
}
