
N=int(raw_input())
a = map(int,raw_input().split())

colors = [0 for i in range(8)]
special = 0
for i in range(N):
    if a[i]<3200:
        if colors[int(a[i]/400)]==0:
            colors[int(a[i]/400)]=1
    else:
        special += 1
if sum(colors)==0:
    print str(1) + " " +str(special)      
else:
    print str(sum(colors)) + " " +str(sum(colors)+special)