N = int(input())
A = [int(a) for a in input().split()]
 
maximum = 0
minimum = 0
for i in range(N):
    A[i] //= 400
for i in range(13):
    if i not in A:
        continue
    if i <= 6:
        minimum += 1
        maximum += 1
    else:
        maximum += A.count(i)
if maximum > minimum:
    minimum += 1
print(minimum, maximum)