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]

cnt = 0

for s in a:
    if s >= rate[-1]:
        cnt += 1
        continue
    
    cont = True
    i = 0

    while cont:
        if  s < rate[i+1]:
            a_ac[i] = 1
            cont = False
        i += 1

print(sum(a_ac))
print(sum(a_ac)+cnt)