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

maxs = [400, 800, 1200, 1600, 2000, 2400, 2800, 3200]
nums = [0 for _ in range(len(maxs))]

count = 0
for a_i in a:
    found = False
    for i in range(len(maxs)):
        if a_i < maxs[i]:
            nums[i] += 1
            found = True
            break
    if not found:
        count += 1

zero_count = nums.count(0)
min_num = len(nums) - zero_count
max_num = min_num + min(zero_count, count)
print("{} {}".format(min_num, max_num))
