N=int(input())
l=[int(x) for x in input().rstrip().split()]
rate=[False]*8
cnt=0
for i in l:
    if 8<=i//400:
        cnt+=1
        continue
    
    rate[i//400]=True



print(sum(rate),sum(rate)+cnt)
