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:
    if a_i >= maxs[-1]:
        count += 1
    else:
        for i in range(len(maxs)):
            if a_i < maxs[i]:
                nums[i] += 1
                break

min_num = len(nums) - nums.count(0)
max_num = min(min_num + count, len(maxs))
if 0 == min_num:
    min_num = 1
print("{} {}".format(min_num, max_num))
