N = int(input())
A = list(map(int,input().split()))
K = [0]*8
ans = 0
ans_2 = 0
for i in range(0,N):
    if A[i] >= 3200:
        ans += 1
    else:
        K[A[i]//400] += 1
for j in range(len(K)):
    if K[j] >= 1:
        ans_2 += 1
print(ans_2,ans+ans_2)