N = int(input())
a = list(map(int, input().split()))
a.sort()

result_min, result_max = 0, 0
count_rate = []
for i in a:
    is_rate = i // 400
    if is_rate < 8:
        if is_rate not in count_rate:
            result_min += 1
            result_max += 1
            count_rate.append(is_rate)
    else:
        if len(count_rate) < 8:
            result_max += 1
            count_rate.append(is_rate)
if result_min == 0:
    result_min += 1
print(result_min, result_max)