def gcd(a, b): if b==0: return a else: return gcd(b,a%b) n = int(input()) a = list(map(int,input().split())) d = a[0] for i in a: d = gcd(i,d) res = 0 for i in a: res+=i//d print(res)