n,*xs=readlines.map &:to_i p 100/xs.inject(:gcd)