n = int(input())
a = map(int, input().split())
colors = {}
for i in a:
    if i//400 <= 7:
        colors[i//400] = 1
    else:
        if 8 in colors:
            colors[8] += 1
        else:
            colors[8] = 1
if 8 in colors:
    print(len(colors)-1, sum(colors.values()))
else:
    print(len(colors), len(colors))
        
    