n = int(input())
rate_list = list(map(int, input().split()))
emp_list = [0]*9
for i in range(n):
    if  1 <= rate_list[i] <= 399:
        emp_list[0] = 1
    elif 400 <= rate_list[i] <= 799:
        emp_list[1] = 1
    elif 800 <= rate_list[i] <= 1199:
        emp_list[2] = 1        
    elif 1200 <= rate_list[i] <= 1599:
        emp_list[3] = 1        
    elif 1600 <= rate_list[i] <= 1999:
        emp_list[4] = 1        
    elif 2000 <= rate_list[i] <= 2399:
        emp_list[5] = 1        
    elif 2400 <= rate_list[i] <= 2799:
        emp_list[6] = 1        
    elif 2800 <= rate_list[i] <= 3199:
        emp_list[7] = 1        
    elif 3200 <= rate_list[i]:
        emp_list[8] += 1
sum_ = 0
for i in range(8):
    sum_ += emp_list[i]

print(sum_, end="")
print(" ", end="")
print(sum_+emp_list[8])