r = list()
r.append((1, 399))
r.append((400, 799))
r.append((800, 1199))
r.append((1200, 1599))
r.append((1600, 1999))
r.append((2000, 2399))
r.append((2400, 2799))
r.append((2800, 3199))

n = int(input())
a = map(int, input().split(" "))

count = [0 for i in range(0, len(r) + 1)]
for ai in a:
    add = False
    for i in range(0, len(r)):
        if r[i][0] <= ai <= r[i][1]:
            count[i] += 1
            add = True
    if not add:
        count[len(count) - 1] += 1

ans_min = 0
for c in range(0, len(count) - 1):
    if count[c] > 0:
        ans_min += 1

if ans_min > 0:
    ans_max = ans_min + count[len(count) - 1]
elif count[len(count) - 1] > 0:
    ans_max = 1
else:
    ans_max = 0

print("%d %d" % (ans_min, ans_max))
