n = int(input())
A = list(map(int, input().split()))

count = [0 for _ in range(9)]

for i in range(n):
    if A[i] // 400 >= 8:
        count[8] += 1
        
    elif count[A[i] // 400] == 0:
        count[A[i]//400] += 1

if count[8] == n:
    print(1, min(n, 8))
else:
    print(sum(count) - count[8], min(sum(count), 8))
