def gcd(a, b) return a if b == 0 gcd(b, a%b) end gets r=100 STDIN.read.split.map(&:to_i).each{|a| r = gcd(r, a) } puts 100 / r