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

L = [0] * 8
for i in range(N):
    if A[i] < 3200:
        num = int(A[i] / 400)
        L[num] = 1
S_min = sum(L)
count = 0
for i in range(N):
    if A[i] >= 3200:
        count = count + 1
S_max = count + S_min
print(S_min, S_max)
