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

list1=[0 for i in range(8)]
W=0
for i in range(N):
    if A[i]>=3200:
        W+=1
    else:
        list1[int(A[i]/400)]=1
if sum(list1)==8:
    print(sum(list1),sum(list1))
else:
    print(max(1,sum(list1)),min(8,sum(list1)+W))
    