N = int(input())
A = list(map(int,input().split()))
free = 0
for i in range(N) :
    if A[i] < 400 :
        A[i] = 1
    elif A[i] < 800 :
        A[i] = 2
    elif A[i] < 1200 :
        A[i] = 3
    elif A[i] < 1600 :
        A[i] = 4
    elif A[i] < 2000 :
        A[i] = 5
    elif A[i] < 2400 :
        A[i] = 6
    elif A[i] < 2800 :
        A[i] = 7
    elif A[i] < 3200 :
        A[i] = 8
    else :
        free += 1
        A[i] = 3200+i
q = 0
for i in range(N) :
    if A[i] >= 3200 :
        q += 1

mi = len(list(set(A))) - q

ma = mi + free
print(mi,ma)

