N=int(input())
A=list(map(int,input().split()))
B=[0]*10
count=0
for i in range(N):
    if A[i]//400<=7:
        B[A[i]//400]+=1
    else:
        B[8]+=1

for i in range(8):
    if B[i]>=1:
        count+=1

print(count, end=" ")
print(min(count+int(B[8]),8))