n = int(input())
a = [int(i) for i in input().split()]
c = {n:0 for n in range(0, 9)}
for a_ in a:
    a__ = a_ // 400
    if a__ <= 7:
        c[a__] += 1
    else:
        c[8] += 1
count = 0
for k, v in c.items():
    if k <= 7:
        if v > 0:
            count += 1
    elif k == 8:
        cc = v + count
        if cc >= 8:
            cc = 8
if count == 0:
    count = 1
ans = str(count) + " " + str(cc)
print(ans)