N=int(input())
l=[int(x) for x in input().rstrip().split()]
rate=[False]*8
cnt=0

for i in l:
    for j in range(1,8+1):
        if 3200<=i:
            cnt+=1
            break
            
        if i<=j*400-1:
            rate[j-1]=True
            break

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