N =int(input())
para = [i for i in map(int,input().split())]

color = [i//400 for i in para]
ans = []
cnt = 0
cnt_g = 0
for i in range(N):
    if color[i] >= 8 :
        cnt_g += 1
    else : 
        if  color[i] in ans : pass
        else: ans.append(color[i])
        
max_val = 0
if cnt_g >= 8 - len(ans) : max_val = 8
else : max_val = len(ans) + cnt_g
min_val = 0
if len(ans) >= 1 : min_val = len(ans)
else : min_val = 1
print("{} {}".format(min_val,max_val))