n=int(input())
a=[int(i) for i in input().split()]
dic={}
check8=0
for i in a:
    check=i//400
    if check not in dic and check <8:
        dic[check]=1
    if check>=8:
        check8+=1

mi=len(dic)
ma=min(8,len(dic)+check8)
print(mi,ma)