n = int(input())
a_list = list(map(int, input().split()))

rank = [0] * 9

for i in range(n):
    index = a_list[i] // 400
    if index >= 8:
        index = 8
    rank[index] += 1

minimum = sum([1 if x>0 else 0 for x in rank[0:8]])
maximum = min(8, minimum + rank[8])

print('{0} {1}'.format(minimum, maximum))