#include <bits/stdc++.h>
using namespace std;
const int maxn = 300005;
long long n;
int main() {
  scanf("%lld", &n);
  long long k = 1000000000000000000;
  for (long long i = 1; i <= n; i++) {
    long long x;
    scanf("%lld", &x);
    long long dif = max(i - 1, n - i);
    long long tk = x / dif;
    k = min(k, tk);
  }
  printf("%lld\n", k);
}
