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

C=[0,0,0,0,0,0,0,0]
R=0

for i in range(N):
    if a[i]<3200:
        C[a[i]//400]+=1
    else:
        R+=1
#print(C,R)
m=0
for i in range(8):
    if C[i]>0:
        m+=1
print(m,m+R)