#339 how many people answer #if difference is 0 N=int(input()) A=[int(i) for i in input() 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[N-1]!=0: if m>A[N-1]: m=A[N-1] S=0 for i in range(N): S+=A[i]//m print(S)