N = int(input()) def gcd(a,b): if b==0:return a return gcd(b,a%b) A = [int(input()) for _ in range(N)] B = [0]*N for i in range(N): d = gcd(100,A[i]) B[i] = 100//d ans = B[0] for i in range(1,N): d = gcd(ans,B[i]) ans = ans*B[i]//d print(ans)