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