N = int(input())
a = list(map(int, input().split()))
colors = [0 for i in range(9)]
for r in a:
    if r < 3200:
        colors[r // 400] += 1
    else:
        colors[8] += 1

num = 0
diff = colors[8]
for i in range(8):
    if colors[i]:
        num += 1
print(num, num + diff)
