n=int(input())
A=list(map(int,input().split()))
B=[0,0,0,0,0,0,0,0]
free=int(0)
for i in range(n):
    if A[i]>=3200:
        free+=1
    else:
        now=int(A[i]/400)
        B[now]+=1
s=B.count(0)
s=8-s
print("{} {}".format(s,s+free))