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

colors = [0]*9

for rate in rates:
    colors[rate // 400] += 1

if colors[0:8] == [0] * 8:
    print(1, min(colors[8], 8))
else:
    zeros = colors[0:8].count(0)
    print(8-zeros, 8-zeros+min(zeros, colors[8]))