from collections import defaultdict

N = int(input())
a = [int(i) // 400 for i in input().split()]

d = defaultdict(int)
for a_i in a:
    d[a_i] += 1

min_v = 0
max_v = 0
for k, v in d.items():
    if k >= 8:
        max_v += v
        if min_v == 0:
            min_v += 1
    else:
        max_v += 1
        min_v += 1

max_v = min(max_v, 8)

print(min_v, max_v)
