n = int(input())
a = list(map(int,input().split()))
color = [0,0,0,0,0,0,0,0,0]
cmin = 0
cmax = 0

for i in range(n) :
    if a[i] < 400 :
        color[0] += 1
    elif a[i] < 800 :
        color[1] += 1
    elif a[i] < 1200 :
        color[2] += 1
    elif a[i] < 1600 : 
        color[3] += 1
    elif a[i] < 2000 :
        color[4] += 1
    elif a[i] < 2400 :
        color[5] += 1
    elif a[i] < 2800 :
        color[6] += 1
    elif a[i] < 3200 :
        color[7] += 1
    else :
        color[8] += 1
for i in range(len(color)-1) :
    if color[i] > 0 :
        cmin  += 1
if cmin + color[8] > 8 :
    cmax = 8
else :
    cmax = cmin + color[8]
print (cmin, cmax)