#include <bits/stdc++.h>
using namespace std;
int n, arr[300009];
bool ok(int num) {
  for (int i = 1; i <= n; ++i) {
    int x = max(i - 1, n - i);
    if ((long long)num * x > arr[i]) return false;
  }
  return true;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    cin >> arr[i];
  }
  int l = 0, r = 1e9, mid, ans;
  while (r >= l) {
    mid = (l + r) / 2;
    if (ok(mid)) {
      ans = mid;
      l = mid + 1;
    } else
      r = mid - 1;
  }
  cout << ans;
  return 0;
}
