n=int(input()) L=list(map(int,input().split())) L.sort() ans=0 p=1 for e in L: x=e//p ans+=x e-=x*p if 0