#include <bits/stdc++.h>
using namespace std;
const int MAX = 3e5 + 5;
int N, a;
int main(int argc, char** argv) {
  int K = 1 << 30;
  scanf("%d", &N);
  for (int i = (0); i < (N); i++)
    scanf("%d", &a), K = min(K, a / max(i, N - i - 1));
  printf("%d\n", K);
  return 0;
}
