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