#include <bits/stdc++.h>
long long n, x, m;
int main() {
  std::cin >> n;
  m = INT_MAX;
  for (long long i = 1; i <= n; ++i) {
    std::cin >> x;
    m = std::min(m, x / (std::max((long long)i - 1, (long long)n - i)));
  }
  std::cout << m << std::endl;
  return 0;
}
