N = int(input())
A = [int(x) for x in input().split()]
rate = [0] * 8
rate_big=0
for i in range(N):
    if A[i] < 3200:
        rate[A[i] // 400] += 1
    else:
        rate_big+=1
ans_min = 0
ans_max=0
for j in range(8):
    if rate[j] > 0:
        ans_min += 1
ans_max=min(8,ans_min+rate_big)
print(ans_min,ans_max,sep=" ")