n = int(input())
a = list(map(int,input().split()))
color = [0]*9
for aa in a:
    if aa < 400:
        color[0] += 1
    elif 400 <= aa  and aa < 799:
        color[1] += 1
    elif 800 <=  aa  and aa < 1199:
        color[2] += 1
    elif 1200 <= aa  and  aa < 1599:
        color[3] += 1
    elif 1600 <= aa  and  aa < 1999:
        color[4] += 1
    elif 2000 <= aa  and  aa < 2399:
        color[5] += 1
    elif 2400 <= aa  and  aa < 2799:
        color[6] += 1
    elif 2500 <= aa  and  aa < 3199:
        color[7] += 1
    elif aa >= 3200:
        color[8] += 1


if color[-1] == 0:
    z = color.count(0)
    ans = 9 - z
    print(ans,ans)
else:
    minnum = sum(color[:-1])
    if color.count(0) >= 2:
        maxnum = minnum + 2
    else:
        maxnum = minnum + 1
    print(minnum,maxnum)



