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

D=[0]*9
for s in S:
    s//=400
    if(s>=8):
        s=8
    D[s]+=1
c=0
for i in range(8):
    if(D[i]==0):
        c+=1
print(max(8-c,D[8]),min(8-c+min(c,D[8]),8))

