N = int(input())
a = list(map(int, input().split()))
flag = [0]*9
ans = 0
ans_max =0
for i in range(N):
    num = int(a[i]/400)
    flag[num]+=1
for i in range(len(flag)-1):
    if flag[i]>=1:
        ans += 1
if flag[8]>8:
    ans_sum = ans + 8
else:
    ans_sum = ans + flag[8]
    
print(ans, ans_sum)