from sys import stdin
n = int(stdin.readline().rstrip())
a = list(map(int, stdin.readline().rstrip().split()))

c = [0] * 9
for i in a:
    if i >= 3200:
        c[8] += 1
    else:
        for j in range(9):
            if 400 * j <= i < 400 * j + 399:
                c[j] += 1

if c[8] > 0:
    resmin = len([i for i in c[:8] if i > 0])
    if resmin == 0:
        resmin = 1
    resmax = resmin + c[8] % (8 - resmin)
    print(str(resmin) + ' ' + str(resmax))
else:
    res = len([i for i in c if i > 0])
    print(str(res) + ' ' + str(res))