N=int(input())
A=[int(x) for x in input().split()]
count=0
for i in range(N):
    if 1<=A[i]<=399:
        A[i]=1
    elif 400<=A[i]<=799:
        A[i]=2
    elif 800<=A[i]<=1199:
        A[i]=3
    elif 1200<=A[i]<=1599:
        A[i]=4
    elif 1600<=A[i]<1999:
        A[i]=5
    elif 2000<=A[i]<=2399:
        A[i]=6
    elif 2400<=A[i]<=2799:
        A[i]=7
    elif 2800<=A[i]<=3199:
        A[i]=8
    else:
        A[i]=9
        count+=1

A=[x for x in set(A)]

if 9 in A:
    print(len(A)-1,len(A)-1+count)
else:
    print(len(A),len(A))
