people = int(input())
rates = list(map(int, input().split(' ')))
colors = [0 for i in range(8)]

color_var = 0
for i in range(people):
    if rates[i] // 400 <= 7:
        if colors[rates[i] // 400] == 0 :
            colors[rates[i] // 400] += 1
    else:
        color_var += 1
        
min_colors = colors.count(1)
max_colors = colors.count(1) + color_var

print(min_colors, max_colors)