from collections import Counter
N=int(input())
A=list(map(int, input().split()))
for i in range(N):
    A[i]=0 if A[i]>=3200 else A[i]//400+1
if len(Counter(A).items())==1  and (0 in Counter(A)):
    print(1, A.count(0))
else:
    print(len(Counter(A).items())-(0 in Counter(A)), min((len(Counter(A).items())-(0 in Counter(A))+A.count(0)),8))
