N = int(input())
A = list(map(int, input().split()))

p_num = [0]*9

for a in A:
    p_num[a//400] += 1
    
ans = 0
for p in p_num[:-1]:
    if p:
        ans +=1
        
ans_min = ans
ans_max = ans + p_num[-1]

print(ans_min, ans_max)