Let's call an array of non-negative integers ?1,?2,…,?? a ?-extension for some non-negative integer ? if for all possible pairs of indices 1≤?,?≤? the inequality ?⋅|?−?|≤???(??,??) is satisfied. The expansion coefficient of the array ? is the maximal integer ? such that the array ? is a ?-extension. Any array is a 0-expansion, so the expansion coefficient always exists.
You are given an array of non-negative integers ?1,?2,…,??. Find its expansion coefficient.
Input
The first line contains one positive integer ? — the number of elements in the array ? (2≤?≤300000). The next line contains ? non-negative integers ?1,?2,…,??, separated by spaces (0≤??≤109).
Output
Print one non-negative integer — expansion coefficient of the array ?1,?2,…,??.
Examples
input
4
6 4 5 5
output
1
input
3
0 1 2
output
0
input
4
821 500 479 717
output
239
Note
In the first test, the expansion coefficient of the