n=gets.to_i a=[] while cin=gets a+=[cin.to_i] end p 100/a.inject(100){|s,r| s.gcd(r)}