n=int(input())
A=list(map(int,input().split()))
c=0
for i in range(n):
    if A[i]>=3200:
        c+=1
        A[i]=8
    else:
        A[i]//=400
print(A)
m=len(set(A))
if c:
    print(m-1,m-1+c)
else:
    print(m,m)