from collections import Counter
n = int(input())
a = [int(i) for i in input().split()]
col = []
for i in range(0,n):
    tmp = int(a[i]/400)
    col.append(tmp)
colcnt = Counter(col)

nonsle = 0
slct = 0
for i in colcnt.keys():
    if i == 8:
        slct = colcnt[i]
    else:
        nonsle += 1

if nonsle==0:
    min = 1
    max = 1
else:
    min = nonsle
    max = slct + nonsle

print(min,max)
