from math import gcd
N=int(input())
A=[int(input()) for i in range(N)]
GCD=0
for a in A:
    GCD=gcd(GCD,a)

print(sum(A)//GCD)