n=int(input()) a=[int(input()) for i in range(n)] import math g=math.gcd(*a) print(sum(v//g for v in a))