# -*- coding: utf-8 -*-
from collections import Counter
N = int(input())
a = [int(n)//400 for n in input().split()]
counter = Counter(a)

colors = 0
for i in range(8):
    if counter[i] > 0:
        colors += 1

rainbow_coder = 0
for i in range(8, 13):
    rainbow_coder += counter[i]

print("{} {}".format(max(1, colors), min(8, colors+rainbow_coder)))
