import sys
iN = int(input())
aA = [int(_) for _ in input().split()]

aCol = [0]*(4800//400 +1)
for a in aA:
    aCol[a//400] += 1
iMin = 0
for i in range(8):
    if aCol[i]:
        iMin += 1
iMax = iMin + sum(aCol[8:])
print(iMin,iMax)
