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