n = int(input())
ratings = list(map(int, input().split(" ")))
colors = [400*i for i in range(1, 9)]
flags = [False for i in range(8)]
over3200 = 0
for rate in ratings:
    for i, border in enumerate(colors):
        if rate < border:
            flags[i] = True
            break
        elif i == 7:
            over3200 += 1
minAns = 0
for f in flags:
    if f:
        minAns += 1
maxAns = minAns + over3200
print(minAns, maxAns)
