

def assign(x):
    if 1 <= x <= 399:
        return 1
    elif 400 <= x <= 799:
        return 2
    elif 800 <= x <= 1199:
        return 3
    elif 1200 <= x <= 1599:
        return 4
    elif 1600 <= x <= 1999:
        return 5
    elif 2000 <= x <= 2399:
        return 6
    elif 2400 <= x <= 2799:
        return 7
    elif 2800 <= x <= 3199:
        return 8
    elif 3200 <= x:
        return 0


def free(dic):
    return dic[0]


def nonzero(dic):
    ret = 0
    for k, v in dic.items():
        if v != 0:
            ret += 1
    return ret


n = int(input())
a = list(map(int, input().split()))
c = [assign(e) for e in a]

dic = {i: 0 for i in range(9)}
for e in c:
    if e == -1:
        dic[0] += 1

    else:
        dic[e] = 1

a = free(dic)
b = nonzero(dic)

print('{} {}'.format(b-a, b+a))
