#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a;
  int k = INT_MAX;
  for (int i = 0; i < n; ++i) {
    cin >> a;
    if (i < n - 1) k = min(k, a / (n - i - 1));
    if (i > 0) k = min(k, a / i);
  }
  cout << k;
  return 0;
}
