# coding: utf-8
# Your code here!

n = int(input().rstrip())
scores = list(map(int,input().rstrip().split()))
band = [399,799,1199,1599,1999,2399,2799,3199]
distr = [0 for _ in range(len(band)+1)]
for s in scores:
    found = False
    for bi in range(len(band)-1,-1,-1):
        if s > band[bi]:
            distr[bi+1] += 1
            found = True
            break
    if found != True:
        distr[0] += 1

n = len([1 for x in distr[:-1] if x > 0])
col_min = n
col_max = n
if n == 0 and distr[-1]>0:
    col_min = 1
col_max = min(8,n + distr[-1])
print(col_min,col_max)