n=int(input())
a=list(map(int,input().split()))
check=[False]*8
count=0
for i in a:
    if i//400<8:
        check[i//400]=True
    else:
        count+=1
ans=0
for i in check:
    if i:
        ans+=1
print(max(1,ans),min(8,ans+count))