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

c=[0]*9
for i in range(N):
    c[min(8,a[i]//400)]+=1
cnt=0
for i in range(8):
    if c[i]>0:
        cnt+=1
if cnt==0:
    cnt=1
minimum=cnt
maximum=min(8,cnt+c[8])
print(minimum,maximum)