maxColorIdx = 8
rates = [False] * maxColorIdx
overRed = 0
N = int(input())
people = list(map(int, input().split()))
for i in people:
    idx = i // 400
    if idx >= maxColorIdx:
        overRed += 1
    else:
        rates[idx] = True
maxColorNum = rates.count(True) + overRed
if maxColorNum > 8:
    maxColorNum = maxColorIdx
print(str(rates.count(True)) + " " + str(maxColorNum))
