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