#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, ans(INT_MAX);
  cin >> n;
  long long arr[n + 1];
  for (long long i = 1; i <= n; i++) {
    cin >> arr[i];
  }
  for (long long i = 1; i <= n; i++) {
    long long p = max(i - 1, n - i);
    long long x = arr[i] / p;
    ans = min(ans, x);
  }
  cout << ans;
  return 0;
}
