n = gets.to_i a = gets.to_i (n - 1).times{ a = a.gcd(gets.to_i) } p 100 / a