import sys

N = int(input())
A = list(map(int, sys.stdin.readline().rsplit()))

dic = dict()
free = 0
for a in A:
    if a <= 399:
        if 1 not in dic:
            dic[1] = 1
    elif a <= 799:
        if 2 not in dic:
            dic[2] = 1
    elif a <= 1199:
        if 3 not in dic:
            dic[3] = 1
    elif a <= 1599:
        if 4 not in dic:
            dic[4] = 1
    elif a <= 1999:
        if 5 not in dic:
            dic[5] = 1
    elif a <= 2399:
        if 6 not in dic:
            dic[6] = 1
    elif a <= 2799:
        if 7 not in dic:
            dic[7] = 1
    elif a <= 3199:
        if 8 not in dic:
            dic[8] = 1
    else:
        free += 1

res = len(dic.items())
print(res, res + free)
