n=int(input())
a_list=list(map(int,input().split()))
rate=[False]*8
free=0
for i in a_list:
    if i<3200:
        rate[i//400]=True
    else:
        free+=1
count=0
for i in rate:
    if i:
        count+=1
Max=min(count+free,8)
print(count,Max)






