N=int(input())
C=[0,0,0,0,0,0,0,0]
R=0
A=list(map(int,input().split()))
for i in range(N):
    if (A[i]//400)<=7:
        C[(A[i]//400)]=1
    else:
        R+=1
col=0
for j in range(len(C)):
    if C[j]>=1:
        col+=1

m=max(col,1)
M=min(col+R,8)
print(m,M)