i = gets.to_i n = gets.to_i (i-1).times do n = n.gcd(gets.to_i) end p 100/n