n=int(input())
A=list(map(int,input().split()))
B=[0,0,0,0,0,0,0,0,0]
for i in range(n):
    now=int(A[i]/400)
    B[now]+=1

ans=int(0)
for i in range(8):
    if B[i]>0:
        ans+=1
    
print("{} {}".format(ans,ans+B[8]))