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

C = {}
C2 = 0
for a in A:
    for i in range(1, 9):
        if a < 400*i:
            if i in C.keys():
                C[i] +=  1
            else:
                C[i] = 1
            break
    if a >= 3200:
        C2 += 1
print(len(C), len(C)+C2)
