n = int(input())

data = list(map(int, input().split()))

data.sort()

cnt =0 
grp =0

for item in data:
    cnt+=1
    if cnt==item:
        grp+=1
        cnt=0

+ Recent posts