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

rate = [1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200]
a_ac = [0,   0,   0,    0,    0,    0,    0,    0,    0]

for s in a:
    cont = True
    i = 0
    while cont:
        if i == len(rate)-1:
            a_ac[len(rate)-1] += 1
            cont = False
        elif  s >= rate[i] and s < rate[i+1]:
            a_ac[i] = 1
            cont = False
        i += 1

print(sum(a_ac[:-1]))
print(sum(a_ac))