from collections import Counter

n = int(input())
a = list(map(lambda a: int(a) // 400, input().split()))
for i in range(n):
    if a[i] >= 8:
        a[i] = 8
c = Counter(a)
if 8 in c:
    print("{} {}".format(
        max(len(c) - 1, 1),
        min(len(c) - 1 + c[8], 8)))
else:
    print("{} {}".format(
        len(c), len(c)))
