N=int(input())
a=list(map(int,input().split()))

b=[ai//400 for ai in a]

ans=0
for i in range(8):
    if i in b:
        ans+=1

m=sum([b.count(i) for i in range(8,13)])

print(ans if ans else 1,ans+m)