n=int(input())
a=list((map(int,input().split())))
l=[0 for _ in range(8)]
f=0
for i in range(n):
    r=a[i]//400
    if r<8:
        l[r]+=1
    else:
        f+=1
amin=0
amax=0
for i in range(len(l)):
    if l[i]>=1:
        amin+=1
        
print(amin,amin+f)
    