N = int(input())
A = list(map(int, input().split()))
color = [0 for _ in range(8)]
e = 0

for a in A:
    if a >= 3200:
        e += 1
        continue
    for i in range(8):
        if a >= i * 400 and a < (i + 1) * 400:
            color[i] += 1

res = len([0 for c in color if c > 0])
if e == 0:
    print(res, res)
else:
    print(res, res + e)
