
n=int(input())

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

ans=[0]*8
c=0

for i in range(n):
    if a[i]<3200:
        ans[a[i]//400]=1
    else:
        c+=1

mi=sum(ans)
ma=sum(ans)+c

if mi==0:
    mi=1

if ma>8:
    ma=8

print(' '.join([str(mi),str(ma)]))