n = int(input())
A =list(map(int, input().split()))
cnt = 0
B = []
for i in range(n):
    if 0 <= A[i] <= 399:
        B.append(0)
    elif 400 <= A[i] <= 799:
        B.append(1)
    elif 800 <= A[i] <= 1199:
        B.append(2)
    elif 1200 <= A[i] <= 1599:
        B.append(3)
    elif 1600 <= A[i] <= 1999:
        B.append(4)
    elif 2000 <= A[i] <= 2399:
        B.append(5)
    elif 2400 <= A[i] <= 2799:
        B.append(6)
    elif 2800 <= A[i] <= 3199:
        B.append(7)
    else:
        #A[i] = 8
        cnt += 1
#ans =len(set(A))+cnt-1
print(len(set(B)), len(set(B))+cnt)
