from math import gcd N=int(input()) g=0 for _ in range(N): a=int(input()) g=gcd(g,a) ans=100//g print(ans)