#339 how many people answer #if difference is 0 N=int(input()) A=[int(input())for i in range(N)] m=A[0]-A[1] for i in range(1,N-2): d=A[i]-A[i+1] if d!=0: if d<0: d*=-1 if m>d: m=d if A[i]!=0 and m>A[i]: m=A[i] if m>A[N-1]: m=A[N-1] S=0 for i in range(N): S+=A[i]//m print(S)