import math N=int(input()) A=[0]*N x=0 for i in range(N): A[i]=int(input()) x=math.gcd(x,A[i]) ans=0 for i in range(N): ans+=A[i]//x print(ans)