N=int(input())
A=list(map(int,input().split()))

L=[0]*9
for a in A:
    if a//400<=7:
        L[a//400]=1
    else:
        L[8]+=1

if sum(L[:-1])==0:
    print(1,sum(L))
else:
    print(sum(L[:-1]),sum(L))
