'use strict'
const main = (N,A) => {
    var count = 0
    const max = Math.max(...A)
    const maxcount = A.filter(x => x === max).length
    const T = A.filter(x =>  x !== max)
    if(T.length === 0) {
        return A[0]/N
    }
    T.forEach(value => {
        for(var i = 1;i<max;i++) {
            if(value*i === max) {
                count+=i
            }
        }
    })
    return max/(count+maxcount)
}

const input = require('fs').readFileSync('/dev/stdin','utf8').split("\n")
const N = Number(input[0])
const A = input[1].split(" ").map( x => Number(x))
console.log(main(N,A))