from collections import defaultdict
n,*a=map(int,open(0).read().split())
c=defaultdict(int)
for s in a:
    c[s//400]+=1

ans=0
ans2=0
for t in sorted(list(c.items())):
    if t[0]<8:
        ans+=1
    else:
        ans2+=t[1]
print(ans,ans+ans2)