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

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

print(max(1, min_count), min(8, min_count + max_plus_count))