#!/bin/bash
read N
read v
while read cur
do
  if [[ -n $pre ]]; then
    lcm="$(yes $cur $pre | \
    awk '{print $1*NR RS $2*NR}' | \
    awk 'a[$1]++{print;exit}')"
    pn=$(( (lcm/pre*pn)+(lcm/cur) ))
    pre=$lcm
  else
    pn=1
    pre=$cur
  fi
done <<EOF
  `echo $v | xargs -n1 echo | sort -n`
EOF
echo $((pre*100000/pn)) | \
sed -e 's/\(.\{5\}\)$/.\1/'