N = int(input())
A = list(map(int,input().split()))
B = [0]*9
for a in A:
    k = 0
    while a>=400*k:
        k+=1
        if k>8:break
    B[k-1]+=1
a = B[8]
B = [1 for b in B[:8] if b>0]
print(sum(B),sum(B)+a)