n = int(input())
ls = list(map(int,input().split()))
a = [0]*8
p = 0
q = 0
co = 0
comax = 0
for i in range(n):
    p = ls[i]//400
    if p < 8:
        if a[p] == 0:
            a[p] += 1
            co += 1
        else:
            pass
    else:
        q += 1
comax = co + q
if comax > 8:
    comax = 8
print(co,comax)